
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is code in MATLAB. Its soution to lab assignment by Sir Bhanuprasad Venkatesan at Shree Ram Swarup College of Engineering and Management for Analog Communication course. It includes: Close, Square, Modulating, Signal, Plot, CArrier, Sawtooth Title, Am, Fm
Typology: Exercises
1 / 1
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'