No products are associated with this question.
Have you tried the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_a_movie_from_my_MATLAB_figures.3F
If you mean you have a plot from 2 vectors x and y, then you can use the function pause to drawn each point :
plot(x(n),y(n)) pause(N), % where N is numbers of seconds hold on, end
Here is an example from my File Exchange : http://www.mathworks.com/matlabcentral/fileexchange/41579-projectile-motion-in-weak-gravitational-fieldg=3-71-ms%C2%B2
Thank you very much these have both been very helpful as I am just starting up in the matlab world.
You might want to check out:
Example from the documentation:
Create the initial animated line object. Then, use a loop to add 1,000 points to the line. After adding each new point, use drawnow to display the new point on the screen.
h = animatedline; axis([0,4*pi,-1,1])
x = linspace(0,4*pi,1000); y = sin(x); for k = 1:length(x) addpoints(h,x(k),y(k)); drawnow end
(And you can control the drawing speed up to a certain degree by resourcing to the pause command)