amdemod error when fs is twice fc

1 回表示 (過去 30 日間)
Kevin Zaka
Kevin Zaka 2021 年 12 月 8 日
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 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by