Tuesday, 15 May 2012

Write a program to generate a discrete-time amplitude modulated sinusoidal sequence. Modulating signal has frequency 0.01 Hz and that of the sine-wave carrier signal is 0.1Hz.


close all;
clc;
t=0:0.01:10;


f=0.01;
a=cos(2*pi*f*t);
subplot(3,1,1);
plot(t,a);
xlabel('time-->');
ylabel('amplitude-->');
title('modulating Waveform');


f=0.1;
b=sin(2*pi*f*t);
subplot(3,1,2);
plot(t,b);
xlabel('time-->');
ylabel('amplitude-->');
title('sine-wave carrier Waveform');


c=a.*b;
subplot(3,1,3);
plot(t,c);
xlabel('time-->');
ylabel('amplitude-->');
title('modulated Waveform');



0 comments

 
© 2011-2012 ProgrammingBlue
Posts RSS Comments RSS
Back to top