MATLAB 帮助中心
Calculate or plot ideal signal constellation
symbols = constellation(obj)
constellation(obj)
symbols = constellation(obj) returns the numerical values of the constellation.
symbols
obj
example
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 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.
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)
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)
Create comm.PAMModulator and comm.PAMDemodulator System objects, and then calculate their ideal signal constellations.
comm.PAMModulator
comm.PAMDemodulator
Create modulator and demodulator objects.
mod = comm.PAMModulator; demod = comm.PAMModulator;
Calculate the constellation points.
refMod = constellation(mod)
refMod = 4×1 -3 -1 1 3
refDemod = constellation(demod)
refDemod = 4×1 -3 -1 1 3
Verify that both objects produce the same points.
isequal(refMod,refDemod)
ans = logical 1
Display the ideal signal constellation.
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.OQPSKModulator
comm.OQPSKDemodulator
comm.gpu.PSKModulator
comm.gpu.PSKDemodulator
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处