Frequency Modulation and Demodultion (FM) : All All
Frequency Modulation and Demodultion (FM) : All All
Frequency Modulation and Demodultion (FM) : All All
APPARATUS:
1. Personal Computer.
2. MATLAB 2010.
PROGRAM:
clc;
clear all;
close all;
fs=8000;
fc=100;
t=linspace(0,1,10000);
x=sin(2*pi*10*t);
dev=50;
y=fmmod(x,fc,fs,dev);
z=fmdemod(y,fc,fs,dev);
subplot(4,1,1),
plot(t,x)
xlabel('time(sec)');
ylabel('amplitude in volts(v)');
title('MODULATING SIGNAL');
subplot(4,1,2),
plot(t,sin(2*pi*fc*t))
FREQUENCY MODULATION AND DEMODULTION(FM)
xlabel('time(sec)')
ylabel('amplitude in volts(V)');
title('CARRIER SIGNAL');
subplot(4,1,3),
plot(t,y)
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('FREQUENCY MODULATED SIGANL');
subplot(4,1,4),
plot(t,z)
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('DEMODULATED SIGNAL');
RESULT: