Wednesday, July 29, 2020

Matlab - Move sinus function toward x axis direction

% The Script plot a Sinus Graph Functin and move it to the x axis direction.
x= 0:0.1:2*pi
y = sin(x);

for i1=0:630
    y = sin(x- i1/100);
    F(i1+1) = getframe;

% One can use the movie function to Play recorded movie frames
% To play the movie two times, use movie(F,2).

No comments:

Post a Comment