cs lab 21
cs lab 21
Communication Systems
Lab Report
Lab# 2
Amplitude Modulation
Group Members Registration Number Syndicate
M.Ashiq Rasool Mustafa 414361
Shehrooz Akram 423739 A
AM involves generating a message signal and a high-frequency carrier signal. The message
signal is multiplied with the carrier, resulting in a modulated wave with an amplitude that varies
according to the message. The modulation index is adjusted to avoid distortion, and the final
AM signal is transmitted through the medium
Mathematics:
Demodulation:
Lab Tasks:
1. Write MATLAB code for amplitude modulation and demodulation of a message signal. 2.
Repeat the task using MATLAB built in commands for amplitude modulation and
demodulation. Compare the output of two methods. For designing low pass filter use fdatool
of MATLAB. Message signal = Sine Signal of 0.1*2*pi Hz:, Fc= 3000.
Code:
fs = 10000;
t = 0:1/fs:0.05;
f_message = 0.1;
f_carrier = 3000;
m_t = sin(2*pi*f_message*t);
figure;
subplot(4,1,1);
plot(t, m_t);
title('Message Signal');
subplot(4,1,2);
plot(t, s_t);
subplot(4,1,3);
plot(t, demodulated_manual);
subplot(4,1,4);
plot(t, demodulated_builtin);
Graph:
Comm System
Experiment # 2 Lab Report 4
Task 2:
Take any input signal, and make the system as shown in figure 2 in Simulink. And then add
the reception part of system in the above block diagram, and retrieve the same signal. Plot
input, carrier signal, modulated signal and received message. Specifications of message
signal:=Signal of 2 Hz frequency Specifications of carrier signal:=Sine Signal of 1k Hz
frequency.
Simulink:
Scope 3 Output:
Comm System
Experiment # 2 Lab Report 5
Conclusion:
In,this lab we got to know the process of Double Sideband Amplitude Modulation and
demodulation using Simulink. A sinusoidal message signal is modulated with a carrier, then
demodulated by multiplying it again with the carrier signal. The output scope visualizes the
successful retrieval of the original message, showcasing the effectiveness of the DSB-AM
technique.