📜  MATLAB 2D Comet()

📅  最后修改于: 2021-01-07 02:45:00             🧑  作者: Mango

MATLAB Comet()

彗星图是一个动画图,其中一个圆圈在屏幕上跟踪数据点。

句法

comet(y) // It displays a comet plot of the vector y.
comet(x,y) // It displays a comet plot of vector y versus vector x.
comet(x,y,p) // It specifies a comet body of length p*length(y). p defaults to 0.1.

y=t sint,0≤t≤10π
q=linspace(0, 10*pi,2000);
y=q.*sin(q);
comet (q, y)

输出: