Wednesday, November 19, 2014

MATLAB Code - Propagating Sine Wave


sin_wave
% _____________________________________________________
% Progression of sine wave and sinusoidal oscillation
% Developed by Mahesha MG, MIT Manipal
%______________________________________________________
figure('color','white')
x1=0;
x=0:.1:10;
for t=0:.01:100
    y=sin(2*x-1*t);
   h= plot(x,y,'bo',x(51),y(51),'r*');
   title('Progression of sine wave')
   xlabel('By: Mahesha MG maheshamg@gmail.com');
   h=getframe;
   getframe;
end

No comments:

Post a Comment