Help CenterHelp Center
Calculate or plot ideal signal constellation
symbols = constellation(obj)
constellation(obj)
example
symbols = constellation(obj) returns the numerical values of the constellation.
symbols
obj
constellation(obj) generates a constellation plot for the object.
Note
For OQPSK, the constellation that displays does not depict the IQ delay introduced by the OQPSK modulator.
collapse all
Create a QPSK modulator.
mod = comm.QPSKModulator;
Determine the reference constellation points.
refC = constellation(mod)
refC = 4×1 complex 0.7071 + 0.7071i -0.7071 + 0.7071i -0.7071 - 0.7071i 0.7071 - 0.7071i
Plot the constellation.
constellation(mod)
Reconfigure the object for bit input and plot the constellation to show the binary values of the Gray-encoded mapping.
release(mod) mod.BitInput = true; constellation(mod)
Create a QPSK demodulator having phase offset set to 0.
0
demod = comm.QPSKDemodulator(0);
Plot the reference constellation. The constellation method works for both modulator and demodulator objects.
constellation
constellation(demod)
Create a PSK modulator.
mod = comm.PSKModulator;
refC = 8×1 complex 0.9239 + 0.3827i 0.3827 + 0.9239i -0.3827 + 0.9239i -0.9239 + 0.3827i -0.9239 - 0.3827i -0.3827 - 0.9239i 0.3827 - 0.9239i 0.9239 - 0.3827i
Create a PSK demodulator having modulation order 16.
demod = comm.PSKDemodulator(16);
Plot its reference constellation. The constellation method works for both modulator and demodulator objects.
Create a BPSK modulator.
mod = comm.BPSKModulator;
refC = 2×1 complex 1.0000 + 0.0000i -1.0000 + 0.0000i
Create a BPSK demodulator having phase offset set to π2.
demod = comm.BPSKDemodulator(pi/2);
refC = constellation(demod)
refC = 2×1 complex 0.0000 + 1.0000i -0.0000 - 1.0000i
Create a OQPSK modulator.
mod = comm.OQPSKModulator;
Determine the reference constellation points. The constellation that displays does not depict the IQ delay introduced by the OQPSK modulator.
Change the phase offset for the modulated symbols. Plot the constellation to show the rotated constellation points.
release(mod) mod.PhaseOffset = 45*pi/180; constellation(mod)
System object to return constellation for, specified as a modulator System object.
Data Types: object
object
Constellation points, returned as a complex vector.
Data Types: double | single Complex Number Support: Yes
double
single
Introduced in R2012a
comm.BPSKModulator
comm.BPSKDemodulator
comm.PSKModulator
comm.PSKDemodulator
comm.QPSKModulator
comm.QPSKDemodulator
comm.OQPSKModulator
comm.OQPSKDemodulator
comm.gpu.PSKModulator
comm.gpu.PSKDemodulator
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office