Generate scatter plot
h = scatterplot(___) returns the
handle to the figure that contains the scatter plot. You can specify any of the input
argument combinations from the previous syntaxes.
Create a 64-QAM signal in which each constellation point is used.
d = (0:63)'; s = qammod(d,64);
Display the scatter plot of the constellation.
x— Input signal
Input signal, specified as a numeric vector or numeric matrix.
The interpretation of
x depends on its shape and
x is a real-valued two-column matrix, the function
interprets the first column as in-phase components and the second column as
x is a complex-valued vector, the function interprets
the real part as in-phase components and the imaginary part as quadrature
x is a real-valued vector, the function interprets it as
a real signal.
Complex Number Support: Yes
n— Decimation factor
1(default) | positive integer
Decimation factor, specified as a positive integer. The function plots every
nth value of input signal
x, starting from
its first value.
offset— Offset value
0(default) | nonnegative integer
Offset value, specified as a nonnegative integer. This offset value specifies the
number of samples at the beginning of input
x that the function
skips before generating the scatter plot.
plotstring— Plot attributes
'b.'(default) | character vector | string scalar
Plot attributes, specified as a character vector or string scalar containing symbols.
This argument sets the plotting symbol, line type, and color for the scatter plot.
The format and meaning of the symbols are the same as in the
plot function. For example, the default value
produces blue dots.
h— Figure handle
Figure handle to an existing figure that contains an scatter plot, specified as a
h must be a handle to a figure
scatterplot function previously generated.