MATLAB Function Reference Previous page   Next Page
comet3

Three-dimensional comet plot

Syntax

Description

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

comet3(z) displays a three-dimensional comet graph of the vector z.

comet3(x,y,z) displays a comet graph of the curve through the points [x(i),y(i),z(i)].

comet3(x,y,z,p) specifies a comet body of length p*length(y).

comet3(axes_handle,...) plots into the axes with handle axes_handle instead of the current axes (gca).

Remarks

Note that the trace left by comet3 is created by using an EraseMode of none, which means you cannot print the graph (you get only the comet head) and it disappears if you cause a redraw (e.g., by resizing the window).

Examples

Create a three-dimensional comet graph.

See Also

comet

Direction and Velocity Plots for related functions


Previous page  comet commandhistory Next page

© 1994-2005 The MathWorks, Inc.