How to display colour in command window output

35 次查看(过去 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
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