tags:

views:

895

answers:

2

Usually when you print a string in MATLAB:

disp('this will print black letters')

Can it be printed in color instead?

+6  A: 

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.

Artelius
A: 

In MATLAB Central-File, I find this function: cprintf

http://www.mathworks.com/matlabcentral/fileexchange/24093

I hope this solve your question.

RWALLS

related questions