How to display colour in command window output

7 visualizaciones (últimos 30 días)
Jay
Jay el 29 de Jul. de 2015
Comentada: Redmer Van Tijum el 15 de Ag. de 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 comentario
Redmer Van Tijum
Redmer Van Tijum el 15 de Ag. de 2019
Please look at the fileexchange. cprintf is the developed code. It is not that straightforward.
\
Cheers

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Jul. de 2015

Más respuestas (0)

Categorías

Más información sobre App Building en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by