display different colors in command window, using command "disp" or similar
Mostra commenti meno recenti
I want sections of my display to be in differnt colors. (Matlab 2009)
ex:
disp('Hello matlab Central!')
Is it possible to get that text in example red?
disp('Hello matlab Central','red')
Thanks
1 Commento
Ronald Hartwig
il 27 Ott 2018
Apparently not. With more current version, simple things like cprintf and fprintf are not valid either.
Risposte (2)
Chunguang LI
il 20 Apr 2021
4 voti
fprintf(2,'only red\n'); %2 for standard error.
Evgeny Pr
il 25 Gen 2013
1 voto
This is an undocumented feature!
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!