Plot of Simultaneous paths using comet3

 Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de En. de 2012

0 votos

I think you could probably use "hold on" and then another comet3() command.

Más respuestas (1)

Jose Jeremias Caballero
Jose Jeremias Caballero el 3 de En. de 2012
could use the plot function.
t = -pi:pi/300:pi;
axis([-1 1 -1 1 -1 2])
hold on
for i=1:2:length(t)-1
T=[t(i) t(i+1)];
plot3(sin(5*T),cos(3*T),T,'r')
plot3(sin(5*T),sin(3*T),T,'b')
pause(0.000001)
end
hold off

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by