Narrowband FM Modulation and Demodulation

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

ANALOG COMMUNICATION SYSTEMS

ECE-3001
EMBEDDED LAB

LAB TASK-2

Name- Saurabh Priyadarshi


Reg. No- 15BEC0631
Slot L53 + L54
Q1.
SIMULINK MODEL
OUTPUT OBTAINED IN SIMULINK
From Scope 1
Q2.
A. FM MODULATION AND DEMODULATION
MATLAB CODE

OUTPUT OBTAINED
B. FM MODULATION AND DEMODULATION IN THE PRESENCE
OF NOISE
CODE

OUTPUT OBTAINED
C. PM MODULATION AND DEMODULATION
MATLAB CODE
OUTPUT OBTAINED

D. PM MODULATION AND DEMODULATION IN THE PRESENCE


OF NOISE
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;

T1=input('enter noise temp of 1st amp: ');


noisetemp=0;
gn=1;
for i=2:x
a=g(i-1);
b(i-1)=[a];
end
for i=1:(x-1)
T=input('enter noise temp of next amp: ');
gn=gn*b(i);
NT=T/gn;
noisetemp=noisetemp+NT;
end
TOTAL_TEMPERATURE=T1+noisetemp;
OUTPUT OBTAINED

You might also like