Is it possible to print color text in the command window?

174 ビュー (過去 30 日間)
Mr M.
Mr M. 2018 年 10 月 17 日
コメント済み: oded s 2025 年 1 月 14 日
Is it possible to print color text in the command window?

採用された回答

madhan ravi
madhan ravi 2018 年 10 月 17 日
編集済み: madhan ravi 2018 年 10 月 17 日
  8 件のコメント
Benjamin Dolgin
Benjamin Dolgin 2024 年 8 月 22 日
Thank you
oded s
oded s 2025 年 1 月 14 日
for future reader
as stated, it's possible with cprintf
but it's painfully slow ... (vs fprintf)
the cprintf takes a lot of time , for example :
>>tic ; for k = 1:1e2, cprintf('_blue', '.') ; end ; fprintf('\n') ; toc
....................................................................................................
Elapsed time is 1.819822 seconds.
>> tic ; for k = 1:1e2, fprintf(2,'.') ; end ; fprintf('\n') ; toc
....................................................................................................
Elapsed time is 0.001130 seconds.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by