Communications Toolbox    
scatterplot

Generate a scatter plot

Syntax

Description

scatterplot(x) produces a scatter plot for the signal x. The interpretation of x depends on its shape and complexity:

scatterplot(x,n) is the same as the first syntax, except that the function plots every nth value of the signal, starting from the first value. That is, the function decimates x by a factor of n before plotting.

scatterplot(x,n,offset) is the same as the first syntax, except that the function plots every nth value of the signal, starting from the (offset+1)st value in x.

scatterplot(x,n,offset,plotstring) is the same as the syntax above, except that plotstring determines the plotting symbol, line type, and color for the plot. plotstring is a string whose format and meaning are the same as in the plot function.

scatterplot(x,n,offset,plotstring,h) is the same as the syntax above, except that the scatter plot is in the figure whose handle is h, rather than a new figure. h must be a handle to a figure that scatterplot previously generated. To plot multiple signals in the same figure, use hold on.

h = scatterplot(...) is the same as the earlier syntaxes, except that h is the handle to the figure that contains the scatter plot.

Examples

See Example: Scatter Plots or the example on the reference page for demodmap. Both examples illustrate how to plot multiple signals in a single scatter plot.

For an online demonstration, type playshow scattereyedemo.

See Also
eyediagram, plot, scattereyedemo, scatter


  rsgenpoly shift2mask