You are on page 1of 7

Communication Engineering

EEE2006
Lab Assessment-4

Name: SAHALE SHERA LUTSE


Reg.no.: 18BEE0376
Slot: L11 + L12
School/Branch: SELECT/EEE
Frequency modulation and demodulation
& Phase modulation and demodulation

AIM:
To study the Frequency modulation and demodulation & Phase
modulation and demodulation.
To generate the following signals:
 Original signal
 Frequency modulated signal
 Frequency demodulated signal
 Phase modulated signal
 Phase demodulated signal

APPARATUS REQUIRED:
System with MATLAB R2019a
MATLAB CODE:
clc
clear all
close all
fs = 1000;
fc = 200;
t = (0:1/fs:0.2);

% create sinusoidal signal


Vm = sin(2*pi*30*t)+2*sin(2*pi*60*t);

% set the frquency deviation to 50 Hz


fDev = 50;

% frequency modulate x
Vfm = fmmod(Vm,fc,fs,fDev);

% demodulate z
Vfdm = fmdemod(Vfm,fc,fs,fDev); % demodulate both channels

% plot the original and demodulated signals


subplot(3,1,1)
plot(t,Vm,'c');
xlabel('Time (sec)');
ylabel('Amplitude');
title(' Original signal ')

subplot(3,1,2)
plot(t,Vfm,'b--')
xlabel('Time (sec)')
ylabel('Amplitude')
title('Modulated signal')

subplot(3,1,3)
plot(t,Vfdm,'r')
xlabel('Time (sec)')
ylabel('Amplitude')
title('Demodulated signal')
MATLAB CODE:
clc
clear all
close all
fs = 50;
t = (0:2*fs+1)'/fs;

% create sinusoidal input signal


Vm = sin(2*pi*t) + sin(4*pi*t);

% set carrier frequency and phase deviation


fc = 10;
phasedev = pi/2;

% modulate the input signal


Vpm = pmmod(Vm,fc,fs,phasedev);

% demodulate the signal


Vpdm = pmdemod(Vpm,fc,fs,phasedev);

% plot the Original and demodulated signal


subplot(3,1,1)
plot(t,Vm.’c’);
legend('Original signal');
xlabel('Time (s)')
ylabel('Amplitude (V)')
title('Original signal')

subplot(3,1,2)
plot(t,Vpm,’b’);
legend('Modulated signal');
xlabel('Time (s)')
ylabel('Amplitude (V)')
title('Modulated signal')

subplot(3,1,3)
plot(t,Vpdm,’r’);
legend('Demodulated signal');
xlabel('Time (s)')
ylabel('Amplitude (V)')
title('Demodulated signal')
RESULT/REFERENCE
Thus, Frequency Modulation & Demodulation and Phase
Modulation & Demodulation has been studied and their spectrum
has been drawn.

You might also like