adding color in command-window output...
조회 수: 279 (최근 30일)
이전 댓글 표시
I use fprintf to report results in the command window. I know I can report errors or warnings, and they display in red or whatever.
I'd like a general tag for fprintf to select colorized text output. I haven't seen any option in the documentaion; is it possible?
Any help would be appreciated.
댓글 수: 0
채택된 답변
Sean de Wolski
2011년 9월 7일
Built-in, the only way I know of is to make it red:
fprintf(2,'\nHello world\n')
use 2 as the fid.
댓글 수: 1
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!