amdemod error when fs is twice fc

1 visualización (últimos 30 días)
Kevin Zaka
Kevin Zaka el 8 de Dic. de 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

Respuestas (0)

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by