Professional Documents
Culture Documents
Narrowband FM Modulation and Demodulation
Narrowband FM Modulation and Demodulation
Narrowband FM Modulation and Demodulation
ECE-3001
EMBEDDED LAB
LAB TASK-2
OUTPUT OBTAINED
B. FM MODULATION AND DEMODULATION IN THE PRESENCE
OF NOISE
CODE
OUTPUT OBTAINED
C. PM MODULATION AND DEMODULATION
MATLAB CODE
OUTPUT OBTAINED
CODE
clc
clear all
close all
x=input (' No of stages, x:');
%enter gain of all amplifiers in array format
g= input ('enter gain of all amplifiers in array format: ');
%enter noise figure of 1st amplifier
nf1=input('NF1: ');
noisefactor=0;
gn=1;
TOTAL_GAIN=0;
TOTAL_GAIN=g(1)*g(2)*g(3);
for i=2:x
a=g(i-1);
b(i-1)=[a];
end
for i=1:(x-1)
b(i);
end
for i=1:(x-1)
noisefigure=input('enter noise figure of next amplifier: ');
N=noisefigure-1;
gn=gn*b(i);
NF=N/gn;
noisefactor=noisefactor+NF;
end
TOTAL_NOISEFACTOR=nf1+noisefactor;