

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


close all
% Step 1: A=11; Am=10; fm=1; t=0:0.002:2; w=-250:(2250)/1000:250; m=A+Amcos(2pifm*t); M=fftshift(abs(fft(m)));
% Step 2: Ac=10; fc=20; c=Accos(2pifct); C=fftshift(abs(fft(c)));
% Step 3: figure, plot(t,m), title('Message Signal'),xlabel('time'),ylabel('Amplitude'),grid on,hold on figure, stem(w(501:1001),M(501:1001)), title('Spectrum of Message Signal'),xlabel('frequency (Hz)'),ylabel('Amplitude'),grid on,hold on figure, plot(t,c), title('Carrier Signal'),xlabel('time'),ylabel('Amplitude'),grid on,hold on figure, stem(w(501:1001),C(501:1001)), title('Spectrum of Carrier Signal'),xlabel('frequency (Hz)'),ylabel('Amplitude'),grid on,hold on
% Step 4: s=(m.*c); S=fftshift(real(fft(s))); figure, plot(t,s), title('Modulated Signal'),xlabel('time'),ylabel('Amplitude'),grid on,hold on figure, stem(w(501:1001),S(501:1001)), title('Spectrum of Modulated Signal'),xlabel('frequency (Hz)'),ylabel('Amplitude'),grid on,hold on
% Step 5: % (i) u = 0. A=20; % using u = Am/A m=A+Amcos(2pifmt); s=(m.c); figure, plot(t,s), title('Modulated Signal for u = 0.5'),xlabel('time'),ylabel('Amplitude'),grid on,hold on % (ii) u = 1 A=10; m=A+Amcos(2pifmt); s=(m.c); figure, plot(t,s), title('Modulated Signal for u = 1'),xlabel('time'),ylabel('Amplitude'),grid on,hold on % (iii) u = 1. A=6.67; m=A+Amcos(2pifmt); s=(m.*c); figure, plot(t,s), title('Modulated Signal for u = 1.5'),xlabel('time'),ylabel('Amplitude'),grid on,hold on
% Step 6: % for u = 1.5,over modulation occures.