0% found this document useful (0 votes)
13 views

Modulating or Message Signal (FM 20Hz)

This document defines variables to generate a modulating signal, carrier signal, and three modulated signals with different modulation indexes. It then demodulates each modulated signal and plots the original modulating signal, carrier signal, three modulated signals, and three demodulated signals on a 4x3 subplot grid to show the effects of under, exact, and over modulation.

Uploaded by

PradeepCool
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Modulating or Message Signal (FM 20Hz)

This document defines variables to generate a modulating signal, carrier signal, and three modulated signals with different modulation indexes. It then demodulates each modulated signal and plots the original modulating signal, carrier signal, three modulated signals, and three demodulated signals on a 4x3 subplot grid to show the effects of under, exact, and over modulation.

Uploaded by

PradeepCool
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

fs=8000;

fm=20;
fc=500;
Am=1;
Ac=1;
t=[0:0.1*fs]/fs;
m=Am*cos(2*pi*fm*t);
c=Ac*cos(2*pi*fc*t);
ka=0.5;
u=ka*Am;
s1=Ac*(1+u*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
subplot(4,3,1:3);
plot(t,m);
title('Modulating or Message signal(fm=20Hz)');
subplot(4,3,4:6);
plot(t,c);
title('Carrier signal(fc=500Hz)');
subplot(4,3,7);
plot(t,s1);
title('Under Modulated signal(ka.Am=0.5)');
Am=2;
ka=0.5;
u=ka*Am;
s2=Ac*(1+u*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
subplot(4,3,8);
plot(t,s2);

title('Exact Modulated signal(ka.Am=1)');


Am=5;
ka=0.5;
u=ka*Am;
s3=Ac*(1+u*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
subplot(4,3,9);
plot(t,s3);
title('Over Modulated signal(ka.Am=2.5)');
r1= s1.*c;
[b a] = butter(1,0.01);
mr1= filter(b,a,r1);
subplot(4,3,10);
plot(t,mr1);
title(' deModulated signal for(ka.Am=0.5)');
r2= s2.*c;
[b a] = butter(1,0.01);
mr2= filter(b,a,r2);
subplot(4,3,11);
plot(t,mr2);
title(' deModulated signal for(ka.Am=1)');
r3= s3.*c;
[b a] = butter(1,0.01);
mr3= filter(b,a,r3);
subplot(4,3,12);
plot(t,mr3);
title(' deModulated signal for(ka.Am=2.5)');

SIMULATION RESULT

You might also like