Make comet move with respect to a function

3 Ansichten (letzte 30 Tage)
Alejandro Castro
Alejandro Castro am 5 Dez. 2019
Beantwortet: Walter Roberson am 6 Dez. 2019
I've got a function x,y (coordinates) and another t,v, (velocity with respect to time) I want to make that the function comet moves according to the x,y function slower or faster with respect to the function of velocity with respect of time, how can I make this?

Antworten (1)

Walter Roberson
Walter Roberson am 6 Dez. 2019
You cannot do that with comet(). comet() requires that you pre-define all of the points, and it moves them however fast it wants.
In current releases, comet() is implemented using matlab.graphics.animation.AnimatedLine which has a public interface of animatedline()

Kategorien

Mehr zu Animation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by