Is there any way to print strings to the command window in different colours using fprintf?

6 ビュー (過去 30 日間)
Brayden Gregson
Brayden Gregson 2015 年 10 月 5 日
回答済み: Walter Roberson 2015 年 10 月 5 日
I've read about cprintf and using fprintf to print to stderr, but I'm a little confused by these methods. What is the simplest and easiest way to print strings to the command window in colours of my choice?

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 10 月 5 日
The file exchange contribution cprintf() is the easiest way to print with your choice of colors in the command window.

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by