Just highlight a variable that you want to plot and click on the drop down menu to bring up the Plot Selector.Īs with many other MATLAB functions, plot takes additional arguments allowing you to customize the plot. You can also access these functions directly from the Workspace Browser. Use PLOT for single color, single marker size scatter plots. H = SCATTER(.) returns handles to the scatter objects created. SCATTER(AX.) plots into AX instead of GCA. SCATTER(.,M) uses the marker M instead of 'o'. SCATTER(X,Y,S) draws the markers at the specified sizes (S) SCATTER(X,Y) draws the markers in the default size and color. Length(X)-by-3 matrix, it directly specifies the colors of the
Same length as X and Y, the values in C are linearly mapped If S is empty, theĬ determines the colors of the markers. MATLAB draws all the markers the same size. Vector the same length a X and Y or a scalar. S determines the area of each marker (in points^2). SCATTER(X,Y,S,C) displays colored circles at the locations specifiedīy the vectors X and Y (which must be the same size). To learn how to use these functions, use help or doc help scatter % doc scatter SCATTER Scatter/bubble plot. Here's a good summary of these plotting routines. MATLAB provides a variety of plotting routines, both in 2D and 3D.