Docsity

Modulation-Analog Communication-Matlab Codes, Exercises of Analog Communication

Toggle sidebar
bg1
close all
fs = 500;
t = 0:(1/fs):4;
Am=25;
fm = 0.5;
tm = 1/fm;
fc = 10;
kf = pi/4;
kp = pi/3;
m = Am*square(2*pi*fm*t);
intm = (Am/2)+(Am/2)*sawtooth(2*pi*fm*t,0.5);
c=cos(2*pi*fc*t);
fm = cos(2*pi*fc*t+kf*intm);
pm = cos(2*pi*fc*t+kp*m);
subplot(4,1,1)
plot(t,m)
title 'Modulating Signal'
subplot(4,1,2)
plot(t,c)
title 'Carrier Signal'
subplot(4,1,3)
plot(t,fm)
title 'Frequency Modulation'
subplot(4,1,4)
plot(t,pm)
title 'Phase Modulation'
docsity.com

Partial preview of the text

Download Modulation-Analog Communication-Matlab Codes and more Exercises Analog Communication in PDF only on Docsity!

close all fs = 500; t = 0:(1/fs):4; Am=25; fm = 0.5; tm = 1/fm; fc = 10; kf = pi/4; kp = pi/3; m = Amsquare(2pifmt); intm = (Am/2)+(Am/2)sawtooth(2pifmt,0.5); c=cos(2pifct); fm = cos(2pifct+kfintm); pm = cos(2pifct+kp*m); subplot(4,1,1) plot(t,m) title 'Modulating Signal' subplot(4,1,2) plot(t,c) title 'Carrier Signal' subplot(4,1,3) plot(t,fm) title 'Frequency Modulation' subplot(4,1,4) plot(t,pm) title 'Phase Modulation'

docsity.com