How can I change the color of text?
조회 수: 7 (최근 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에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!