This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


System object: comm.ConstellationDiagram
Package: comm

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.


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?