how to create a string variable with specified color?
21 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
DGM
2022 年 4 月 20 日
A string or char doesn't have a color.
If you're talking about putting a text object in a figure, you could do that.
mywords = "i'm not here";
ht = text(0,0,mywords,'color','b')
xlim([-1 1])
ylim([-1 1])
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!