display colored output in command window
古いコメントを表示
Can the numbers be displayed in command window in some colors. I mean ... 1 should be displayed in red color and 2 should be displayed in blue color.
Regards, Siva
Edit [27 Mar 2012, 08:25 BST - OK] Erased email address.
回答 (1 件)
Oleg Komarov
2012 年 3 月 27 日
Edit
An example with cprintf:
A = [5 6; 9 10];
cprintf('cyan' , '%3.0f' ,A(1));
cprintf('Magenta' , '%3.0f \n',A(3));
cprintf('blue' , '%3.0f' ,A(2));
cprintf('green' , '%3.0f \n',A(4));
3 件のコメント
Sivakumaran Chandrasekaran
2012 年 3 月 27 日
Oleg Komarov
2012 年 3 月 27 日
It's a submission of the FEX. Follow the link.
Sivakumaran Chandrasekaran
2012 年 3 月 28 日
編集済み: DGM
2024 年 6 月 19 日
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!