hey there, can anybody help me .. i had run the code but the graph doesnt want to appear..anybody can help me..thank you
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*(l+m*sin(wm).*sin(wc)));
d=(y.*ec);
dl=(conv(d,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,2),plot(t(1:1),ec(1:1))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('CARRIER SIGNAL');
subplot(4,1,3),plot(t(1:1),ec(1:1))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('MODULATED SIGNAL');
subplot(4,1,4),plot(t(1:1),ec(1:1))
xlabel('time(sec)');
ylabel('amplitude in volts(V)');
title('DEMODULATED SIGNAL');
Best Answer