amdemod error when fs is twice fc

1 vue (au cours des 30 derniers jours)
Kevin Zaka
Kevin Zaka le 8 Déc 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

Réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by