
Handle Graphics
prop_name(2) = {'MarkerFaceColor'} ;
The prop_v alues cell array contains 10 values: five values for the Marker
property and five values for the M arkerFaceColor property. Notice that
prop_values is a two-dimen sional cell array. The first dim ension indica t es
which handle in
h thevaluesapplytoandtheseconddimensionindicates
which property the value is assigned to:
prop_values(1,1) = {'s'};
prop_values(1,2) = {get(h(1),'Colo r')} ;
prop_values(2,1) = {'d'};
prop_values(2,2) = {get(h(2),'Colo r')} ;
prop_values(3,1) = {'o'};
prop_values(3,2) = {get(h(3),'Colo r')} ;
prop_values(4,1) = {'p'};
prop_values(4,2) = {get(h(4),'Colo r')} ;
prop_values(5,1) = {'h'};
prop_values(5,2) = {get(h(5),'Colo r')} ;
The MarkerFaceColor is always as sig n ed the value of the corre spo n ding
line’s color (obtained by getting the lineseries
Color property with the get
command).
After defining the cell arrays, call
set to specify the new property values:
set(h,prop_name,prop_values)
3-79
Commentaires sur ces manuels