MATLAB Answers

display different colors in command window, using command "disp" or similar

337 views (last 30 days)
Per
Per on 25 Jan 2013
Commented: Ronald Hartwig on 27 Oct 2018
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 Comment

Ronald Hartwig
Ronald Hartwig on 27 Oct 2018
Apparently not. With more current version, simple things like cprintf and fprintf are not valid either.

Sign in to comment.

Answers (1)

Community Treasure Hunt

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

Start Hunting!