How to display colour in command window output

21 views (last 30 days)
If I have an if statement with conditions, how do I print a statement in different colours in the Command Window?
eg.
if x = 3
test = ' True' (in blue)
else test = 'False' (in red)
end
  1 Comment
Redmer Van Tijum
Redmer Van Tijum on 15 Aug 2019
Please look at the fileexchange. cprintf is the developed code. It is not that straightforward.
\
Cheers

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Jul 2015

More Answers (0)

Categories

Find more on Argument Definitions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!