Adding more colors to my array
Afficher commentaires plus anciens
Hey everyone, i have an array of colors and would like to add more. I currently have:
plot_type = ['r'; '-g'; '-b'; '-c'; '-m';'-k'];
and would like to have something like:
plot_type = ['-r';'-b';'-g';'-g';'-y';'-k';'-m';'-.r';'-.b';'-.g';'-.y';'-.k';'-.m';'-.p';'-.c';'-g';'-y'];
but matlab does not like it. Any other way of doing the latter? thanks!
3 commentaires
John Petersen
le 11 Juil 2012
You have -.p in the 2nd array. It should probably be a '-.b'.
u-will-neva-no
le 12 Juil 2012
Jan
le 12 Juil 2012
"Matlab does not like it" is not really helpful. When you explain a problem, adding the complete error message and the line, which causes the error is recommended.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!