Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

comet3

3-D comet plot

Syntax

comet3(z)
comet3(x,y,z)
comet3(x,y,z,p)
comet3(ax,...)

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 3-D 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). p must be between 0 and 1.

comet3(ax,...) plots into the axes ax instead of into the current axes (gca).

Examples

collapse all

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

See Also

|

Introduced before R2006a

Was this topic helpful?