Function File: m = amdemod (s, fc, fs)

Creates the AM demodulation of the signal s sampled at frequency fs with carrier frequency fc.

Inputs:

  • s: AM modulated signal
  • fc: carrier frequency
  • fs: sampling frequency

Output:

  • m: AM demodulation of the signal

Demo

demo amdemod

See also: ammod, fmmod, fmdemod.

Demonstration 1

The following code

 #Parameters
 Fs = 44100;
 T  = 1;
 Fc = 15000;
 Fm = 10;
 #Low-pass filter design
 [num,den] = butter(10,1.2*Fc/Fs); 
 #Signals
 t = 0:1/Fs:T;
 x = cos(2*pi*Fm*t);
 y = ammod(x,Fc,Fs);
 z = amdemod(y,Fc,Fs);
 #Plot
 figure('Name','AM Modulation');
 subplot(3,1,1); plot(t,x); title('Modulating signal');
 subplot(3,1,2); plot(t,y); title('Modulated signal');
 subplot(3,1,3); plot(t,z); title('Demodulated signal');

Produces the following figure

Figure 1

Package: communications