Matlab Equivalent to Vpython Trail

10 visualizaciones (últimos 30 días)
Edward Lee
Edward Lee el 17 de Abr. de 2015
Comentada: Star Strider el 17 de Abr. de 2015
Essential what the title says. I am currently modeling an animation of multiple spheres using a while loop. I am wondering if there was a way to model the trajectory of the spheres like the trail function in Vpython can.

Respuestas (1)

Star Strider
Star Strider el 17 de Abr. de 2015
I am not familiar with Vpython, but the comet function and its friends (links at the end of the comet documentation page) might be what you want.
  2 comentarios
Edward Lee
Edward Lee el 17 de Abr. de 2015
Ah, that seems like it would work. Any idea on how I would get this to work in a loop? I have a sphere with on a set of coordinates that updates every loop but when I put comet in the loop it just shows the blue dot each time without the trail.
Star Strider
Star Strider el 17 de Abr. de 2015
I’m not sure.
If you have R2015a, another option (that I also haven’t done a lot with recently) is the animatedline function.

Iniciar sesión para comentar.

Categorías

Más información sobre Animation en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by