¿How can I change letter colour?
28 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(2 个)
Star Strider
2015-9-15
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'.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!