User defined color/linetype property
Show older comments
In my code, I define some color and linetype properites:
marker = 'wo';
markerFaceColor_str = 'MarkerFaceColor';
markerFaceColor_val_str = 'w';
plotSymbol_str = ['''' marker '''' ',' '''' markerFaceColor_str '''' ',' '''' markerFaceColor_val_str ''''];
This gives me the string
'wo','MarkerFaceColor','w'
My plot statement (which gives me an "Error in color/linetype argument") is
plot(x,y,plotSymbol_str)
If I write out the string, it works fine. Why am I getting the error?
Accepted Answer
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!