AM generation using MATLAB!!!

                                AM generation code for MATLAB!

%AM generation
t=0:0.001:1;
m=input('Enter modulation Index');
ms=5*sin(2*pi*5*t); %Message signal
cs=5*sin(2*pi*50*t); %Carrier signal
Am=(5+m*ms).*sin(2*pi*100*t);%AM signal
subplot(3,1,1);
plot(t,ms);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
subplot(3,1,2);
plot(t,cs);
xlabel('Time');
ylabel('Amplitude');
title('Carrier signal');
subplot(3,1,3);
plot(t,Am);
xlabel('Time');
ylabel('Amplitude');
title('AM signal');

Output:
Enter modulation Index 1


Comments

Popular posts from this blog

Continuous Wave Radar

Digital design fundamentals

Frequency Modulated Continuous Wave Radar