% Demonstrate Amplitude Modulation 
n= (1:1000);
fc=1/10;
ac=2;
y=ac*cos(2*pi*fc*n);
subplot(311)
plot(y);
title('signal')
n=(1:1000);
ac=2;
fc=1/10;
y=ac*cos(2*pi*fc*n);
bm= 1;
fm=1/100;
x= bm * sin(2*pi*fm*n);
am=(ac+x).*y/ac;
subplot(312)
plot(am);
title ('under modulation')
bm=2.5;
x= bm*sin(2*pi*fm*n);
am=(ac+x).*y/ac;
subplot(313)
plot (am);
title('Modulated wave')
 
 







