I know that it is possible to change the color of a label in a figure in matlab from the default black to another color. I have a need to change only part of the label text to a different color. For example.
h = xlabel('black, red');set(h, 'Color',[1, 0 ,0])
This should change the entire text to red instead of black, but I'd only like to change the color of the word red.
Best Answer