MATLAB: How to shading plot

colorplotshadeshadedshading

Best Answer

Color is defined as a vector of 3 values: RGB. When you select 'g' on you plots this vector is [0 1 0]. 'r' is [1 0 0] or 'b' is [0 1 0]. You can customize the color for every curve:
mycolor = [0 1 0];
h = plot(x,y);
set(h,'Color', mycolor);
To know which is the values of the greens, you can look at this page, for example: http://www.rapidtables.com/web/color/RGB_Color.htm