Apparent bug in comm.PhaseNoise?

5 views (last 30 days)
Brian
Brian on 13 Oct 2022
Answered: Stefanie Schwarz on 4 Sep 2024
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]

Answers (1)

Stefanie Schwarz
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!

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!