如何在MATLAB中以彩色打印字符串? [英] How do you print a string in MATLAB in color?

查看:281
本文介绍了如何在MATLAB中以彩色打印字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常在MATLAB中打印字符串时

Usually when you print a string in MATLAB:

disp('this will print black letters')

可以改为彩色打印吗?

推荐答案

如果您fprintf()stderr,它可能会以另一种颜色显示(我认为取决于您的偏好).

If you fprintf() to stderr, it can come out in another colour (depending on your preferences, I think).

您有未记录的功能可以(滥用)获得更多的收益.

There is undocumented functionality you can (ab)use to get more than this, though.

这篇关于如何在MATLAB中以彩色打印字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆