MATLAB Function Reference
  Go to function:
    Search    Help Desk 
comet    Examples   See Also

Two-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.

comet(y) displays a comet plot of the vector y.

comet(x,y) displays a comet plot of vector y versus vector x.

comet(x,y,p) specifies a comet body of length p*length(y). p defaults to 0.1.

Remarks

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

Examples

Create a simple comet plot:

See Also

comet3



[ Previous | Help Desk | Next ]