matlab graph colors code example
Example 1: matlab plot colors
'y' yellow
'm' magenta
'c' cyan
'r' red
'g' green
'b' blue
'w' white
'k' black
Example 2: 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