amdemod error when fs is twice fc
1 view (last 30 days)
Show older comments
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
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!