如何在MATLAB中打印彩色字符串?

Roo*_*ook 10 matlab

通常在MATLAB中打印字符串时:

disp('this will print black letters')
Run Code Online (Sandbox Code Playgroud)

它可以用彩色印刷吗?

Art*_*ius 12

如果你fprintf()这样stderr,它可以用另一种颜色出来(根据你的喜好,我认为).

但是,您可以(ab)使用未记录的功能来获得更多功能.