Lab 3 Am Demodulation
Lab 3 Am Demodulation
(Power) Engineering
Lab Assignment: 3
MATLAB
Code: %% AM
Demodulation
clc
clear
all
close
all
%% Intial
Parameter vm=1;
vc=5; m=vm/vc;
t=0:1:200;
fm=50;
fc=10*fm;
fs=10*fc; ts=t/fs;
ph=0;
%% information signal
x_m=cos(2*pi*fm*ts +
ph); figure plot (ts,
x_m)
xlabel ('time')
ylabel('magnitude')
title('Base Band Signal')
grid on
%% AWGN Channel
SNR =10;
Y=awgn(m_t,SNR)
figure plot(ts,Y) xlabel('time')
ylabel('Magnitude') title('AM
Modulation Signal with noise')
grid on
%% AM Demodulation with
noise
mt_noise=amdemod(Y,fc,fs)
figure plot(ts,mt_noise)
xlabel('time')
ylabel('Magnitude') title('AM
Demodulated Signal') grid on
%%SNR in dB
snr_dp=sum(mt.^2)./sum(mt.^2-
mt_noise.^2);
snrdb=abs(10.*log(snr_dp));
disp('Signal to noise ratio (SNR_db)');
display(snrdb)
Analysis:
Modulation Index: 1.0
AM Demodulated Signal:
As we increase Modulation Index, The Signal to Noise Ratio also increases which
means SNR is directly proportional to Modulation Index.
Graph between SNR (dB) and Modulation Index:
50
40
SNR(dB)
30
20
10
0
0.2 0.6 1
Modulation Index
Answer:
The signal ratio is increasing with the increase of modulation index. Like in the
table.
Answer:
SNR= S/N
The Shannon–Hartley theorem tells the maximum rate at which information can
be transmitted over a communications channel of a specified bandwidth in the
presence of noise.
C = W log2 (1 + P N) bits/s.
The number of independent samples that can be put through a channel of
bandwidth W hertz is 2W samples per second.
Answer:
If x (t) is your message signal, then you can write the AM signal as
s(t)=A[1+mx(t)]cosω0t
Where A>0 is a real-valued constant, m is the modulation index, and ω0 is the
carrier frequency (in radians). If you assume that the noise added by the
channel is white with power spectral density N0, then the SNR after
demodulation is
𝑨𝟐𝒎𝟐𝒙𝟐(𝒕)
𝑺𝑵𝑹= eq (1)
𝟒𝑵𝒐𝑩𝒙
message x(t) and x2(t) is its average power.
Where Bx is the bandwidth of the
Conclusion:
From this LAB I Learn that signal ratio is increasing with the increase of
modulation index. I also know about Shannon–Hartley theorem that tells us the
maximum rate at which information can be transmitted over a communications
channel of a specified bandwidth in the presence of noise. If you assume that
the noise added by the channel is white with power spectral density N0, then
the SNR after demodulation is from equation (1) where Bx is the bandwidth of
the message x(t) and x2(t) is its average power.
AFFECTIVE 10%
COGINATIVE 20%
PSYCHOMOTER 70%
THE END