amdemod error when fs is twice fc

1 view (last 30 days)
Kevin Zaka
Kevin Zaka on 8 Dec 2021
So I'm running the amdemod command:
demod_signal = amdemod(mod_signal,10^6,2*10^6);
and when I execute it, it gives me the following error:
Error using amdemod (line 43)
Fs must be at least 2*Fc.
I click on the linked 'line 43' text and it takes me to the source code of the amdemod function and I see the following:
% check that Fs must be greater than 2*Fc
if(Fs<=2*Fc)
error(message('comm:amdemod:FsReal2'));
end
So fs must be at least twice fc but the 'if' clause in the code makes it so that fs must be at least twice fc + 1. Shouldn't the 'if' condition be:
if(Fs<2*Fc)
...
end
MATLAB r2020a v9.8 with Communication Toolbox v7.3
Thank you

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!