This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


System object: comm.ConstellationDiagram
Package: comm

Display constellation diagram of signal in scope figure




    Note:   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.


expand all

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 step method.


Was this topic helpful?