You must surely have grasped how to add the color code to get your graph to the wanted color, and notice at the beginning of this post the different color and code you can make use of while using this technique Matlab plotting line style See Basic Plots and Graphs for related functions.Let’s twist the code a little to change the plot color See the Plot Editor for information on plot annotation tools in the figure window toolbar. See the text String property for a list of symbols and how to display them.
For example, this plot of the sine function relabels the x-axis with more meaningful values, You can adjust the axis tick-mark locations and the labels appearing at each tick. Specifying Tick Mark Location and Labeling
If you want changes you make to these properties to persist, then you must define these changes as default values. Note that, by default, MATLAB resets the ColorOrder and LineStyleOrder properties each time you call plot. After cycling through all the colors defined by ColorOrder, plot then cycles through the line styles defined in the axes LineStyleOrder property. If you do not specify a color when plotting more than one line, plot automatically cycles through the colors in the order specified by the current axes ColorOrder property. Returns a column vector of handles to line graphics objects, one handle per line. (See the "Examples" section for examples.) Sets properties to the specified property values for all line graphics objects created by plot. You can mix Xn,Yn,LineSpec triples with Xn,Yn pairs: plot(X1,Y1,X2,Y2,LineSpec,X3,Y3). Plots all lines defined by the Xn,Yn,LineSpec triples, where LineSpec is a line specification that determines line type, marker symbol, and color of the plotted lines. If only Xn or Yn is a matrix, the vector is plotted versus the rows or columns of the matrix, depending on whether the vector's row or column dimension matches the matrix. Plots all lines defined by Xn versus Yn pairs. In all other uses of plot, the imaginary component is ignored. If Y is complex, plot(Y) is equivalent to plot(real(Y),imag(Y)). Plots the columns of Y versus their index if Y is a real number. Plot (MATLAB Functions) MATLAB Function Reference