Documentation

step

System object: comm.ConstellationDiagram
Package: comm

Display constellation diagram of signal in scope figure

Syntax

step(H,X)

Description

step(H,X) displays the constellation diagram of the signal, X, in the scope figure.

Examples

expand all

Constellation Diagram of QPSK Signal

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.

step(cd,y)

Was this topic helpful?