You are on page 1of 1

clc

clear all
close all
t=linspace(0,0.02,10000);
fc=5000;
fm=200;
fs=40000;
Am=5;
Ac=10;
m=Am/Ac
wc=2*pi*fc*t;
wm=2*pi*fm*t;
ec=Ac*sin(wc);
em-Am*sin(wm);
y=Ac*(1+m*sin(wm)).*sin(wc);
z=y.*ec:
zl=conv(z,exp(-t/0.000795));

l=10000;
subplot(4,1,1,),plot(t(1:1),em(1:1))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('modulating signal');
subplot(4,1,1),plot(t(1:1/2),ec(1:1/2))
xlabel('time(sec)');
tlabel('amplitude in volts(V)');
title('carrier signal');
subplot(4,1,3),plot(t(1:1),y(1:1))
xlabel('time(sec)');
ylabel('amplitude in volts(v)');
title('amplitude modulated signal');
subplot(4,1,4),plot(4,1,4),plot(t(1:1),y(1:1))
xlabel('time(sec)');
ylabel('amplitude in volt(V)');
title('DEMODULATED SIGNAL');

You might also like