1) Aim: To Generate Amplitude Modulation and Demodulation Software: Matlab 7.0 Matlab Code
1) Aim: To Generate Amplitude Modulation and Demodulation Software: Matlab 7.0 Matlab Code
s2=Ac*(1+u*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
subplot(4,3,8);
plot(t,s2);
title('exact modulated signal(ka*Am=1)');
Am=5;
ka=0.5;
u=ka*Am;
s3=Ac*(1+u*cos(2*pi*fm*t)).*cos(2*pi*fc*t);
subplot(4,3,9);
plot(t,s3);
title('over modulated signal(ka.Am=2.5)');
r1=s1.*c;
[b a]=butter(1,0.01);
mr1=filter(b,a,r1);subplot(4,3,10);plot(t,mr1);
r2=s2.*c;
[b a]=butter(1,0.01);
mr2=filter(b,a,r2);subplot(4,3,11);plot(t,mr2);
r3=s3.*c;
[b a]=butter(1,0.01);
mr3=filter(b,a,r3);subplot(4,3,12);plot(t,mr3);
title('demodulated signal');