Experiment No.: 06 Name of The Experiment: Implementation of Envelope Detection of AM Signal Using MATLAB Coding and Simulink Model Objective
Experiment No.: 06 Name of The Experiment: Implementation of Envelope Detection of AM Signal Using MATLAB Coding and Simulink Model Objective
Experiment No.: 06 Name of The Experiment: Implementation of Envelope Detection of AM Signal Using MATLAB Coding and Simulink Model Objective
: 06
Name of the Experiment: Implementation of envelope detection of AM signal
using MATLAB coding and Simulink model
Objective:
1. To understand the operation theory of envelope detection of AM signal
2. To design and implement envelope detection of AM signal using the MATLAB Coding
3. To design and implement envelope detection of AM signal using the Simulink model
4. To explain the spectrum of the detected signal using envelope detection.
Theory:
Write theory according to the discussion in the class
MATLAB Coding:
clc;
close all;
clear all;
subplot(3,1,1)
plot(t,message)
xlabel('time (s)')
ylabel('amplitude of m(t)')
subplot(3,1,2)
plot(t,carrier)
xlabel('time (s)')
ylabel('amplitude of carrier')
subplot(3,1,3)
plot(t,am_sig)
xlabel('time (s)')
ylabel('amplitude of AM')
subplot(3,1,1)
plot(f_Hz, mess_mag_spec)
axis([-12000 12000 0 0.5])
xlabel('frequency (Hz)')
ylabel('magnitude of m(t)')
subplot(3,1,2)
plot(f_Hz, carr_mag_spec)
xlabel('frequency (Hz)')
ylabel('magnitude of carrier')
axis([-12000 12000 0 0.5])
subplot(3,1,3)
plot(f_Hz, am_mag_spec)
xlabel('frequency (Hz)')
ylabel('magnitude of AM')
axis([-12000 12000 0 0.5])
%% Envelope Detection
figure(3)
subplot(2,1,1)
hold on
plot(t,am_sig) % plotting am signal
plot(t,up) % plotting envelope of am signal
xlabel('time (s)')
ylabel('amplitude')
title('AM signal and Envelope');
hold off
subplot(2,1,2)
hold on
plot(t,message)
plot(t,up)
plot(t,dc_removed,'k')
xlabel('time (s)')
ylabel('amplitude')
title('Comparison of message, envelope and DC-blocked signal')
hold off
figure(4)
subplot(3,1,1)
plot(f_Hz, mess_mag_spec)
xlabel('frequency (Hz)')
ylabel('magnitude')
title('magnitude spectrum of message signal')
axis([-2000 2000 0 1])
subplot(3,1,2)
plot(f_Hz, up_mag)
xlabel('frequency (Hz)')
ylabel('magnitude')
title('magnitude spectrum of envelope')
axis([-2000 2000 0 1])
subplot(3,1,3)
plot(f_Hz, dc_rem_mag)
xlabel('frequency (Hz)')
ylabel('magnitude')
title('magnitude spectrum of dc-blocked signal')
axis([-2000 2000 0 1])
Simulink Model:
To know the details of the simulink block, watch the class video.
Results:
Discussion:
Student Task:
1. For AM Simulink model, take the modulation index = (last digit of student ID + 1)*0.1.
2. Show the results in the report and explain the waveforms and the spectrum