Lab 10 (Open Ended Lab) Solved
Lab 10 (Open Ended Lab) Solved
Lab 10 (Open Ended Lab) Solved
1.3. Deliverable
You are required to submit
Code
Observation and experiences
In the beginning of next lab.
The first figure shows the modulating wave, which is the message signal. The next one is
the carrier wave, which is a high frequency signal and contains no information. While the
last one is the resultant modulated wave. It can be observed that the positive and
negative peaks of the carrier wave, are interconnected with an imaginary line. This line
helps recreating the exact shape of the modulating signal. This imaginary line on the
carrier wave is called as Envelope. It is the same as that of the message signal.
The implementation of the AM transmitter and receiver system is fairly simple as seen
in the diagram shown below:
1. Generate a message signal m(t) as a sum of two sinusoidal. Let it be your message
signal. Plot and analyze both the time domain and frequency domain plots.
Code:
% Initial parameters
Fs = 1000;
T = 1/(1+Fs);
t = 0:T:1;
f1 = 100;
f2 = 200;
Screenshot:
2. Generate a cosine of 1000Hz and call it you carrier signal. Plot and analyze both
the time domain and the frequency domain plots.
Code:
% Carrier Signal
C = 1;
carrier = C * cos(2 * pi * Fs * t);
Explanation:
This MATLAB code generates and plots a message signal in both the time and frequency domains.
3. Now generate the signal that we will receive at the end of the transmitter
system. Plot and analyze both the time and the frequency plots. This signal is the
Amplitude modulated signal, carefully examine these plots. Try identifying the
how the amplitude of the amplitude modulated signal varies with time.
Code:
Screenshot:
Explanation:
4. Assuming we have a noise less channel we receive the signal generated in the
previous part as the input to the receiver circuit. Generate the output signal by
implementing the system given in the block diagram. Plot and analyze the output
signal. A detailed answer is required focusing on what has actually happened
here.
Code:
%Output Signal
Screenshot:
5. If you would have noticed that the output signal in the previous part was
supposed to be the message signal, but it is quite different. Can you identify what
operation (in terms of filtering) we need to perform to retrieve our original
message signal? Explain how you arrived at your answer.
Explanation:
To retrieve the original message signal from the output signal, we need to perform a filtering
operation known as demodulation or detection. In the context of amplitude modulation (AM),
the common demodulation technique is envelope detection.
Rectification: Convert the modulated signal to its absolute value, effectively removing the
negative half.
Low-pass filtering: Apply a low-pass filter to smooth the signal and retain the envelope.
6. Implement the Amplitude Modulation again with the given MATLAB built-in
functions and compare the results with yours.
% Carrier Signal
C = 1;
carrier = C * cos(2 * pi *Fc * t);
Screenshot:
Conclusion:
In this Open Ended Lab, we were able to understand the operations carried out in
the Amplitude modulation and understand their applications in real-world. It was
a fun lab to do and we got to learn a lot.