%create a script file modulation that returns the following plot % 1 m(t) vs t % 2 carrier vs t % 3 AM vs t % 4 angle modulation (FM/PM) vs t % fplot(fun,limits)
plots fun between % the limits specified by limits. limits is % a vector specifying the x-axis limits ([xmin xmax]), % or the x- and y-axes limits, ([xmin xmax ymin ymax]). figure(1) subplot(2,2,1); fplot('3*cos(5*t)',[0 3 -6 6]); title('information signal'); ylabel('amplitude'); xlabel('time');
subplot(2,2,2); fplot('cos(50*t)',[0 .5 -1.5 1.5]); title('carrier signal'); ylabel('amplitude'); xlabel('time'); subplot(2,2,3); fplot('3*cos(50*t)*cos(5*t)',[0 3 -6 6]); title('amplitude modulated signal'); ylabel('amplitude'); xlabel('time'); subplot(2,2,4); fplot('3*cos((50*t)+3*cos(5*t))',[0 1.5 -6 6]); title('angle modulated signal'); ylabel('amplitude'); xlabel('time');
figure(2) subplot(3,1,1); fplot('3*cos(5*t)',[0 2 -6 6]); title('information signal'); ylabel('amplitude'); xlabel('time');
subplot(3,1,2); fplot('cos(50*t)',[0 2 -1.5 1.5]); title('carrier signal'); ylabel('amplitude'); xlabel('time'); subplot(3,1,3); fplot('3*cos((50*t)*3*cos(5*t))',[0 2 -6 6]); title('frequency modulated signal');
ylabel('amplitude'); xlabel('time');
I request Electronics and communication ENGINEERING students to visit my blog for more abhishek1ek.blogspot.com awhengineering.blogspot.com