
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

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'