Function File: y = ammod (x, fc, fs)

Creates the AM modulation of the amplitude signal x with carrier frequency fc.

Inputs:

  • x: amplitude message signal
  • fc: carrier frequency
  • fs: sampling frequency

Output:

  • y: The AM modulation of x

Demo

demo ammod

See also: amdemod, fmmod, fmdemod.

Demonstration 1

The following code

 ## carrier Frequency
 fc = 200;
 
 ## sampling frequency
 fs= 4000;
 
 ## time Duration
 t = (0 : 1 ./ fs : 1);
 
 ## sine Wave with time duration of 't'
 x = sin (2 .* pi .* t);
 
 ## Amplitude Modulation
 y = ammod (x, fc, fs);
 
 plot(y);
 title('Amplitude Modulation');
 xlabel('Time(sec)');
 ylabel('Amplitude');

Produces the following figure

Figure 1

Package: communications