How to display colour in command window output
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jay
le 29 Juil 2015
Commenté : Redmer Van Tijum
le 15 Août 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 commentaire
Redmer Van Tijum
le 15 Août 2019
Please look at the fileexchange. cprintf is the developed code. It is not that straightforward.
\
Cheers
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!