Asked by Union Colleg
on 17 Jul 2013

The plots differ in color based on the Z value.

*No products are associated with this question.*

Answer by Image Analyst
on 17 Jul 2013

Have you tried the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_a_movie_from_my_MATLAB_figures.3F

Answer by Youssef Khmou
on 17 Jul 2013

hi,

If you mean you have a plot from 2 vectors x and y, then you can use the function pause to drawn each point :

for n=1:length(x)

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

Answer by Union Colleg
on 17 Jul 2013

Thank you very much these have both been very helpful as I am just starting up in the matlab world.

Answer by Shane
on 18 Jul 2013

Edited by Shane
on 18 Jul 2013

The comet function is also quite nice.

X = sin(0:.01:2*pi); comet(X)

%or X = sin(0:.01:2*pi); Y = 0:.01:2*pi; comet(X,Y)

Image Analyst
on 18 Jul 2013

Opportunities for recent engineering grads.

## 0 Comments