change colour of a text into blue

438 ビュー (過去 30 日間)
Locks
Locks 2013 年 4 月 1 日
text(0,0.11,'Log-normal distribution')
text(10,0.06,'Normal distribution')
set(text,'Color','b')
I would like to have the 2nd row of code displayed in blue, but if I insert 'b' into the brackets, it does not with and the code above doesn't either, what do I need to change?

採用された回答

Mahdi
Mahdi 2013 年 4 月 1 日
Try doing it in one line
text(10, 0.06, 'Normal distribution', 'Color', 'b')
  1 件のコメント
Locks
Locks 2013 年 4 月 1 日
that's working, thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by