How can I change the color of text?
18 次查看(过去 30 天)
显示 更早的评论
Hey MATLAB experts,
I don't know ho to change the color of a text. For example: a = input('Enter a value in the range of 0-10'); and b = input ('Enter a value in the range of 0-10'); Then: c = a+b; Now I want the c as RED if it is greater than 10 and GREEN if it is less than 10.
Thanks so much for your help,
Mehdi
0 个评论
回答(1 个)
C.J. Harris
2011-12-20
The simple answer is that you can't, at least not using any standard Matlab commands.
It is possible however to use Java to achieve what you want:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!