I want to have a plot title that has 2 different colors. So for example, I will have the following sample code:
str1 = sprintf('this'); str2 = sprintf('is a'); str3 = sprintf('test'); title(str1+str2+str3,'FontSize',10);
But I want `str2` to be red in color while `str1` and `str3` are default black in color. How do I change the colors independently?
Best Answer