How to display colour in command window output
19 次查看(过去 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 中查找有关 Argument Definitions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!