close all;
clc;
t=0:0.01:10;
f=0.01;
a=cos(2*pi*f*t);
subplot(3,1,1);
plot(t,a);
xlabel('time-->');
ylabel('amplitude-->');
title('modulating Waveform');
f=0.1;
b=sin(2*pi*f*t);
subplot(3,1,2);
plot(t,b);
xlabel('time-->');
ylabel('amplitude-->');
title('sine-wave carrier Waveform');
c=a.*b;
subplot(3,1,3);
plot(t,c);
xlabel('time-->');
ylabel('amplitude-->');
title('modulated Waveform');





0 comments