Experiment Name: Experiment on Amplitude Modulation using MATLAB Simulator
Objective:
✓ To study the function of Amplitude Modulation (under modulation, perfect modulation &
over modulation) and also to calculate the modulation index.
Experiment Tools: MATLAB 2020a
Theory:
Amplitude modulation (AM) is a modulation technique utilized in electronic communication, most
ordinarily for transmitting data by means of a carrier wave. In amplitude modulation, the
amplitude that is the signal quality of the carrier wave differs with respect to that of the message
signal being transmitted.
Amplitude modulation in MATLAB can be achieved by using the ammod() function.
Syntax: y = ammod(x, Fc, Fs, ini_phase, carramp)
Parameters:
✓ x: amplitude signal
✓ Fc: carrier signal frequency
✓ Fs: sampling frequency
✓ ini_phase: initial phase in the modulated signal y in radians
✓ carramp: carrier amplitude of the modulated signal
✓ Returns: amplitude modulated (AM) signal
Matlab Code – 1:
Amplitude modulation of a sine wave with only 3 parameters.
clc
clear all
close all
% 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');
Matlab Code – 2:
Amplitude modulation of a cos wave.
clc;
Md. Humayun Kabir Dept. of CCE, IIUC Page | 1
clear all;
close all;
Ac=2; %carrier amplitude
fc=0.5; %carrier frequency
Am=.5; %message signal amplitude
fm=.05; %message signal frequency
Fs=100; %sampling rate/frequency
ka=1;%Amplitude Sensitivity
t=[0:0.1:50];%defining the time range & disseminating it
into samples
ct=Ac*cos(2*pi*fc*t); %defining the carrier signal wave
mt=Am*cos(2*pi*fm*t); %defining the message signal
AM=ct.*(1+ka*mt); %Amplitude Modulated wave, according to
the standard definition
subplot(3,1,1);%plotting the message signal wave
plot(mt);
ylabel('Message signal');
subplot(3,1,2); %plotting the carrier signal wave
plot(ct);
ylabel('carrier');
subplot(3,1,3); %plotting the amplitude modulated wave
plot(AM);
ylabel('AM signal');
Matlab Code – 3:
Amplitude Modulation (under modulation, perfect modulation & over modulation)
clc
clear all
close all
fs=8000;
fm=20;
fc=500;
Am=1;
Ac=1;
t=[0:0.1*fs]/fs;
m=Am*cos(2*pi*fm*t);
c=Ac*cos(2*pi*fc*t);
ka=0.5;
u=ka*Am;
s1=Ac*(1+u*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
subplot(4,3,1:3);
plot(t,m);
title('Modulating or Message signal(fm=20Hz)');
subplot(4,3,4:6);
Md. Humayun Kabir Dept. of CCE, IIUC Page | 2
plot(t,c);
title('Carrier signal(fc=500Hz)');
subplot(4,3,7);
plot(t,s1);
title('Under Modulated signal(ka.Am=0.5)');
Am=2;
ka=0.5;
u=ka*Am;
s2=Ac*(1+u*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
subplot(4,3,8);
plot(t,s2);
title('Exact Modulated signal(ka.Am=1)');
Am=5;
ka=0.5;
u=ka*Am;
s3=Ac*(1+u*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
subplot(4,3,9);
plot(t,s3);
title('Over Modulated signal(ka.Am=2.5)');
Md. Humayun Kabir Dept. of CCE, IIUC Page | 3