scatter(x,y) creates a scatter plot with circular markers at the locations specified by the vectors x and y. To plot one set of coordinates, specify x and y as vectors of equal length. To plot multiple sets of
scatter3(tbl,xvar,yvar,zvar)plots the variablesxvar,yvar, andzvarfrom the tabletbl. To plot one data set, specify one variable each forxvar,yvar, andzvar. To plot multiple data sets, specify multiple variables for at least one of those arguments. The arguments that specify multiple variabl...
This MATLAB function creates a 2-D scatter plot of the data in vectors x and y, and displays the marginal distributions of x and y as univariate histograms on the horizontal and vertical axes of the scatter plot, respectively.
Data Types:string Axes for the plot, specified as anAxesorUIAxesobject. If you do not specifyax, thengscattercreates the plot using the current axes. For more information on creating an axes object, seeaxesanduiaxes. Output Arguments
Visualize the resulting clusters as a 2-D group scatter plot by using thegscatterfunction. By default,gscatteruses the seven MATLAB default colors. If the number of unique clusters exceeds seven, the function cycles through the default colors as needed. Find the number of clusters, and generate...
The default value for clr is the matrix of RGB triplets containing the MATLAB default colors. If you do not specify enough colors for all unique groups in g, then gplotmatrix cycles through the specified values in clr. If you use default values when the number of unique groups exceeds the...
This MATLAB function creates a 2-D scatter plot of the data in vectors x and y, and displays the marginal distributions of x and y as univariate histograms on the horizontal and vertical axes of the scatter plot, respectively.
Additional Options scatter3(ax,___) plots into the axes specified by ax instead of into the current axes (gca). The ax option can precede any of the input argument combinations in the previous syntaxes. example scatter3(___,Name,Value) modifies the scatter plot using one or more name-...
This MATLAB function plots the input pcloud point cloud as a 3-D scatter plot in the current axes handle.
Additional Options scatter3(ax,___) plots into the axes specified by ax instead of into the current axes (gca). The ax option can precede any of the input argument combinations in the previous syntaxes. example scatter3(___,Name,Value) modifies the scatter plot using one or more name-...