color in output in matlab
138 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ali hassan
el 5 de Feb. de 2022
Comentada: Walter Roberson
el 14 de Nov. de 2024 a las 0:42
let say if i want my output for certain condition in red or green clor,can it be done so?
a=[1 2 3 4 4];
b=[1 2 3 4 5];
if any(abs(a-b))==1
sprintf('ali')
end
what should i add so that it will print 'ali' in red?
3 comentarios
jessupj
el 14 de Nov. de 2024 a las 0:16
is that really still the state of the art? it seems like there should be something much simpler than a 600ish line external function.
Walter Roberson
el 14 de Nov. de 2024 a las 0:42
That is really still the state of the art. That contribution takes care to be compatible over a range of versions, and to support several different features.
You could always call com.mathworks.services.Prefs.setColorPref directly if you want.
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings 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!