フィルターのクリア

How to display colour in command window output

47 ビュー (過去 30 日間)
Jay
Jay 2015 年 7 月 29 日
コメント済み: Redmer Van Tijum 2019 年 8 月 15 日
If I have an if statement with conditions, how do I print a statement in different colours in the Command Window?
eg.
if x = 3
test = ' True' (in blue)
else test = 'False' (in red)
end
  1 件のコメント
Redmer Van Tijum
Redmer Van Tijum 2019 年 8 月 15 日
Please look at the fileexchange. cprintf is the developed code. It is not that straightforward.
\
Cheers

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

採用された回答

Walter Roberson
Walter Roberson 2015 年 7 月 29 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by