2D comet animated plot.
comet(y)
comet(x,y)
comet(x,fun)
comet(x,y,p)
comet(x,fun,p)
comet(...,"colors",c)
a real vector or matrix. If omitted, it is assumed to be the vector
1:ny where ny is the
number of curve points (see below).
a real vector or matrix of length.
a real scalar in the interval[0 1[. Default value is 0.1.
a scilab function with calling sequence y=fun(x). fun can also be a polynomial or a rational fraction.
a vector of ny color index.
If (x,y) are two vectors with the same number
of elements, this function draws a 2D comet animated plot
showing the progession of the curve
(x(1:k),y(1:k)) for k
varying from 1 to
size(x,'*').
The plot is made of three parts:
(x(i),y(i)) position.
(x(i-k:i),y(i-k:i)) part of the curve.
(x(1:i-k),y(1:i-k)) part of the curve.
comet(x,fun,...) is equivalent to comet(x,feval(x,fun),...)
comet(...,p) can be used to set the
relative length of the body. k is defined
as k = round(p*ny).
if y is a matrix then animated curves are drawn for each pair (x,y(:,l)).
in this case ny is the number of rows of y.
if x and y are
matrices with identical sizes then animated curves are drawn
for each pair (x(:,l),y(:,l)). in this
case ny is the number of rows of
xand y.
comet(...,"colors",c) can be used to set the colors of each curves.