Is it possible to print color text in the command window?

83 visualizaciones (últimos 30 días)
Mr M.
Mr M. el 17 de Oct. de 2018
Comentada: oded s el 14 de En. de 2025
Is it possible to print color text in the command window?

Respuesta aceptada

madhan ravi
madhan ravi el 17 de Oct. de 2018
Editada: madhan ravi el 17 de Oct. de 2018
  8 comentarios
oded s
oded s el 14 de En. de 2025
for future reader
as stated, it's possible with cprintf
but it's painfully slow ... (vs fprintf)
the cprintf takes a lot of time , for example :
>>tic ; for k = 1:1e2, cprintf('_blue', '.') ; end ; fprintf('\n') ; toc
....................................................................................................
Elapsed time is 1.819822 seconds.
>> tic ; for k = 1:1e2, fprintf(2,'.') ; end ; fprintf('\n') ; toc
....................................................................................................
Elapsed time is 0.001130 seconds.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by