Make comet move with respect to a function

조회 수: 3 (최근 30일)
Alejandro Castro
Alejandro Castro 2019년 12월 5일
답변: Walter Roberson 2019년 12월 6일
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?

답변 (1개)

Walter Roberson
Walter Roberson 2019년 12월 6일
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()

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by