Matlab Equivalent to Vpython Trail

9 Ansichten (letzte 30 Tage)
Edward Lee
Edward Lee am 17 Apr. 2015
Kommentiert: Star Strider am 17 Apr. 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.

Antworten (1)

Star Strider
Star Strider am 17 Apr. 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 Kommentare
Edward Lee
Edward Lee am 17 Apr. 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 am 17 Apr. 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Animation finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by