MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   如何在MATLAB中以彩色打印字符串? (https://www.labfans.com/bbs/showthread.php?t=22785)

poster 2019-12-10 16:49

如何在MATLAB中以彩色打印字符串?
 
通常,当您在MATLAB中打印字符串时:

disp('this will print black letters') 可以用彩色打印吗?


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

但是,您可以(滥用) [URL="http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/"]某些未记录的功能[/URL]来获取更多信息。



[url=https://stackoverflow.com/questions/1457461]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 23:19

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.