Apparent bug in comm.PhaseNoise?
4 views (last 30 days)
Show older comments
I'm trying to add phase noise to a signal, using the examples provided, but it only works part of the time. Is there some strange limitation on which values of phase noise are allowed?
clear all
nbits = 1000;
data = randi([0 1], nbits, 1);
modData = pskmod(data,2);
phNzLevel = [-70 -80]; % in dBc/Hz
phNzFreqOff = [2000 20000]; % in Hz
pnoise = comm.PhaseNoise('Level', phNzLevel, 'FrequencyOffset', phNzFreqOff);
y = pnoise(modData);
scatterplot(y);
The code above works. But if I change line 5 to the following, then no phase noise is added to the signal. I've increased the noise, so it should look worse than before. Why doesn't it work with these values?
phNzLevel = [-50 -80]
0 Comments
Answers (1)
Stefanie Schwarz
on 4 Sep 2024
Hi Brian,
This is a bug in MATLAB R2023b and prior releases, with no known workarounds.
This bug has been fixed in MATLAB R2024a and later releases.
Sorry for the delay and the inconvenience!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!