How to code the colors in MATLAB?
2 ビュー (過去 30 日間)
古いコメントを表示
Hey all,
I was just wondering how I can find the codes for colors in Matlab. Furthermore, what are the related commands in order to use them? e.g. how can I make a RED word?
Thanks a lot :)
0 件のコメント
回答 (1 件)
Paulo Silva
2011 年 9 月 6 日
Example:
plot(1,1,'*','MarkerEdgeColor','r')
or
plot(1,1,'*','MarkerEdgeColor',[1 0 0])
does the same thing
More red examples
%figure with red background
set(figure,'color',[1 0 0])
and
%axes with red background
set(axes,'color',[1 0 0])
Finally red text
text(0.1,0.1,'Hello MATLAB user','color',[1 0 0])
2 件のコメント
Paulo Silva
2011 年 9 月 6 日
I'm not the best person to help you with those questions, please create another question and provide more details, someone else will help you.
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!