adding color in command-window output...
277 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kip
am 7 Sep. 2011
Kommentiert: Minh Vu
am 30 Mai 2023
I use fprintf to report results in the command window. I know I can report errors or warnings, and they display in red or whatever.
I'd like a general tag for fprintf to select colorized text output. I haven't seen any option in the documentaion; is it possible?
Any help would be appreciated.
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 7 Sep. 2011
Built-in, the only way I know of is to make it red:
fprintf(2,'\nHello world\n')
use 2 as the fid.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!