Tuesday, 15 May 2012

Draw a diminishing sinusoidal signal, i.e. a sine curve whose amplitude decays with time


t=0:0.01:10;q=exp(-t);
z=sin(2*pi*t);
y=z.*q;
plot(t,y);

0 comments

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