how to get more colors?
48 ビュー (過去 30 日間)
古いコメントを表示
Hai,
I have used all the colors viz. 'y','m','c','r','g','b','w' and 'k' in matlab to draw lines. I need to draw some more lines with different colors, other than the above colors. How could I get more colors to draw lines? Looking for your reply.
BSD
3 件のコメント
Steven Lord
2019 年 5 月 5 日
FYI the uisetcolor tool in MATLAB will allow you to select a color interactively and return the RGB value you can use to set the 'Color' property of a graphics object.
採用された回答
joeDiHare
2011 年 10 月 10 日
You can use the option 'Color' and then chosing any combination of randon numbers (between 0 and 1) which form a triplet, e.g. [0.1 0.3 0.5]. This will give a combination of saturation for Red, Green and Blue, that as you may know, can be combined to give almost any color (RGB system).
syntax would be plot(t,x,'Color',[rand rand rand])
Stefano
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!