Is it possible to print color text in the command window?
174 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to print color text in the command window?
0 件のコメント
採用された回答
madhan ravi
2018 年 10 月 17 日
編集済み: madhan ravi
2018 年 10 月 17 日
yes its possible , see the link below: Edited: https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatted-colored-text-in-the-command-window
8 件のコメント
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 Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!