Adding more colors to my array
이전 댓글 표시
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
John Petersen
2012년 7월 11일
You have -.p in the 2nd array. It should probably be a '-.b'.
u-will-neva-no
2012년 7월 12일
Jan
2012년 7월 12일
"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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!