constellation

System object: comm.BPSKModulator
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 BPSK Modulator Reference Constellation

Create a BPSK Modulator System object™ and calculate the reference constellation values.

Create a comm.BPSKModulator System object.

h = comm.BPSKModulator;

Calculate and display the reference constellation values by calling the constellation function.

refC = constellation(h)
refC = 2×1 complex

   1.0000 + 0.0000i
  -1.0000 + 0.0000i

Plot BPSK Modulator Reference Constellation

Create a BPSK Modulator System object™ and plot the reference constellation.

Create a comm.BPSKModulator System object.

bpsk = comm.BPSKModulator;

Plot the reference constellation by calling the constellation function.

constellation(bpsk)