필터 지우기
필터 지우기

How to display colour in command window output

조회 수: 47 (최근 30일)
Jay
Jay 2015년 7월 29일
댓글: Redmer Van Tijum 2019년 8월 15일
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
Redmer Van Tijum 2019년 8월 15일
Please look at the fileexchange. cprintf is the developed code. It is not that straightforward.
\
Cheers

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2015년 7월 29일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by