comet3

Purpose

Three-dimensional comet plot.

Synopsis

comet3(z)
comet3(x,y,z)
comet3(x,y,z,p)
comet

Description

A comet plot is an animated graph in which a circle (the comet head) traces the data points on the screen. A trailing segment, the comet body, follows the head. The tail traces the entire function using a solid line.

comet3(z) displays an animated, three-dimensional comet plot of the vector z.

comet3(x,y,z) displays an animated comet plot of the curve through the points [x(i),y(i),z(i)].

comet3(x,y,z,p) uses a comet body of length p*length(y). The default value for p is 0.1.

comet3, with no arguments, provides a demonstration of the three-dimensional comet plot.

Examples

t = -10*pi:pi/250:10*pi;
comet3((cos(2*t).^2).*sin(t),(sin(2*t).^2).*cos(t),t)

See Also

comet, quakedemo

(c) Copyright 1994 by The MathWorks, Inc.