System object: comm.ConstellationDiagram
Display constellation diagram of signal in scope figure
Starting in R2016b, instead of using the
step method to perform the operation defined by the System
object™, you can call the object with arguments, as if it were a function. For example,
y = step(obj,x) and
y = obj(x) perform equivalent operations.
step(H,X) displays the constellation diagram
of the signal,
X, in the scope figure.
Create a constellation diagram System object.
cd = comm.ConstellationDiagram;
Generate random symbols, apply QPSK modulation, and pass the modulated signal through a noisy channel.
d = randi([0 3],100,1); x = pskmod(d,4,pi/4); y = awgn(x,20);
Plot the constellation diagram by using the