Hello,
I got a fig.file which is a bar chart (attached). And I want to change some bar charts to red for example, bar 4, 10 and 15. but i get an error on the 'flat' line.
Unrecognized property 'FaceColor' for class 'matlab.ui.Figure'.
Error in sadadadadas (line 4)
Figure.FaceColor = 'flat';
This is what i got
Variables = [4 10 15]
Figure = openfig('R2-Normalized.fig');
hold on
Figure.FaceColor = 'flat';
hold on
for j = 1:size(Variables,2)
aux = Variables(j);
Figure.CData(aux,:) = [1 0 0];
end
Thanks for you time!
0 Comments
Sign in to comment.