¿How can I change letter colour?

35 views (last 30 days)
Nerea  Amondarain
Nerea Amondarain on 15 Sep 2015
Commented: Benjamin Azrieli on 30 Nov 2020
No puedo cambiar el color rojo de las letras después del texto del input o disp. Quiero ponerlos en morado en vez de en rojo que hago?

Answers (2)

Star Strider
Star Strider on 15 Sep 2015
If you want to change the colour of text written to the Command Window, use the file identifier 2 with fprintf:
fprintf(2, 'This displays in red.\n')
to display text objects (like plot titles and axis labels) in red, see the documentation in Text Properties for 'Color'.

Hamoon
Hamoon on 15 Sep 2015

Tags

Community Treasure Hunt

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

Start Hunting!