How to display colour in command window output
조회 수: 38 (최근 30일)
이전 댓글 표시
If I have an if statement with conditions, how do I print a statement in different colours in the Command Window?
eg.
if x = 3
test = ' True' (in blue)
else test = 'False' (in red)
end
댓글 수: 1
Redmer Van Tijum
2019년 8월 15일
Please look at the fileexchange. cprintf is the developed code. It is not that straightforward.
\
Cheers
채택된 답변
추가 답변 (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!