Documentation

constellation

System object: comm.PAMDemodulator
Package: comm

Calculate or plot ideal signal constellation

Syntax

y = constellation(h)
constellation(h)

Description

y = constellation(h) returns the numerical values of the constellation.

constellation(h) generates a constellation plot for the object.

Examples

Calculate Ideal PAM Signal Constellation

Create comm.PAMModulator and comm.PAMDemodulator System objects™, and then calculate their ideal signal constellations.

Create a modulator and demodulator objects.

mod = comm.PAMModulator;
demod = comm.PAMModulator;

Calculate the constellation points.

refMod = constellation(mod)
refDemod = constellation(demod)
refMod =

    -3
    -1
     1
     3


refDemod =

    -3
    -1
     1
     3

Verify that both objects produce the same points.

isequal(refMod,refDemod)
ans =

     1

Display the ideal signal constellation.

constellation(mod)

Was this topic helpful?