matlab plot color code example
Example 1: figure bachground matlab color
set(gcf,'color','w');
Example 2: matlab plot colors
'y' yellow
'm' magenta
'c' cyan
'r' red
'g' green
'b' blue
'w' white
'k' black
Example 3: plot background color matlab
set (gca, 'Color' , 'k' )
Example 4: MATLAB color for plots
The following are the letters you can add to your code to control the color of your plot while plotting in Matlab.
b blue
g green
r red
c cyan
m magenta
y yellow
k black
w white