How to display colour in command window output

9 Ansichten (letzte 30 Tage)
Jay
Jay am 29 Jul. 2015
Kommentiert: Redmer Van Tijum am 15 Aug. 2019
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 Kommentar
Redmer Van Tijum
Redmer Van Tijum am 15 Aug. 2019
Please look at the fileexchange. cprintf is the developed code. It is not that straightforward.
\
Cheers

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 29 Jul. 2015

Weitere Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by