display different colors in command window, using command "disp" or similar
269 次查看(过去 30 天)
显示 更早的评论
I want sections of my display to be in differnt colors. (Matlab 2009)
ex:
disp('Hello matlab Central!')
Is it possible to get that text in example red?
disp('Hello matlab Central','red')
Thanks
1 个评论
Ronald Hartwig
2018-10-27
Apparently not. With more current version, simple things like cprintf and fprintf are not valid either.
回答(2 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!