Professional Documents
Culture Documents
Date: 5.1.23
Name: Avinash V
Reg. No. 21BEC1676
Procedure:
2) Assign the values for all parameters like message signal-frequency, amplitude and
others
3) Specify the message signal in mathematical form and plot the message signal
6) To perform amplitude modulation use “ammod” command and obtain the waveform
7) To extract the message signal from AM modulated signal use “amdemod” signal
Modulation
Modulating
Signal
Generator
A.M
modulator
Carrier
Generator
Demodulation
Modulating
Signal AM AM
Generator Modulator Demodulator
Carrier
Generator
clc
clear all
close all
t=0:0.001:1;
A=5;
fm=10;
fc=100;
Sm=A*sin(2*pi*fm*t);
subplot(4,1,1);
plot(t,Sm);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
grid on;
Sc=A*sin(2*pi*fc*t);
subplot(4,1,2);
plot(t,Sc);
xlabel('Time');
ylabel('Amplitude');
title('Carrier signal');
grid on;
y=ammod(Sm,fc,1000);
subplot(4,1,3);
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('Modulated signal');
clc
clear
t=0:0.001:1;
Am=5;
Ac=10;
fm=10;
fc=100;
Sm=Am*sin(2*pi*fm*t);
subplot(4,1,1);
plot(t,Sm);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
grid on;
Sc=Ac*sin(2*pi*fc*t);
subplot(4,1,2);
plot(t,Sc);
xlabel('Time');
ylabel('Amplitude');
title('Carrier signal');
grid on;
%AM modulation
y=ammod(Sm,fc,1000);
subplot(4,1,3);
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('Modulated signal');
%AM demodulation
x=amdemod(y,fc,1000);
subplot (4,1,4);
plot(t,x);
xlabel('Time');
ylabel('Amplitude');
title('Demodulated signal');
Bandwidth calculation:
Bandwidth=2fm
2*10
20 bps
Inference:
From the modulated waveform we can observe the superimposition of carrier and message
signal and also we can observe a bubble shaped signal from this waveform we can conclude
that AM modulation is done and to verify the modulation output we need demodulate the
same once demodulation is done we can observe exactly the message signal hence verified
the result of AM modulation.
Result:
The MATLAB code for AM modulation is done and verified the output using demodulation