Matlab Plot Colors And Shapes

I have a matrix data of size nxm i want to plot the plot first and second half of data with different colors.
Matlab plot colors and shapes. Setting colors on graph. Colors in matlab plots. The following are the letters you can add to your code to control the color of your plot while plotting in matlab. Add markers to a line plot to distinguish multiple lines or to highlight particular data points.
Control the colors line styles and markers used for plotting by setting properties on the axes and line objects. Home basic matlab tutorial matlab plot formatting line types market types and colors. Rgb triplet hexadecimal color code appearance 0 0 4470 0 7410 0072bd 0 8500. This matlab function creates a scatter plot with circles at the locations specified by the vectors x and y.
Data 1 10 1 and data 1 10 2 color1. Using basic colors in graphs. Let s try some variants on the following example. Here are the rgb triplets and hexadecimal color codes for the default colors matlab uses in many types of plots.
Matlab plotting to plot the graph of a function you need to take the following steps. Matlab plot colors line type and marker type. With some simple commands we can easily change the line types markers and colors in our plots. Plotting functions accept line specifications as arguments and modify the graph generated accordingly.
The following table shows the colors and their codes. Here s how one can use those colors in matlab. Default colors in 2d graphs.