How do you print a string in MATLAB in color?

matlab

Solution

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.

Problem

Usually when you print a string in MATLAB: ``` disp('this will print black letters') ``` Can it be printed in color instead?

Original source