23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2comet3<br />

Purpose Three-dimensional comet plot<br />

Syntax comet3(z)<br />

comet3(x,y,z)<br />

comet3(x,y,z,p)<br />

comet3<br />

Description A comet plot is an animated graph in which a circle (the comet head) traces the<br />

data points on the screen. The comet body is a trailing segment that follows the<br />

head. The tail is a solid line that traces the entire function.<br />

comet3(z) displays a three-dimensional comet plot of the vector z.<br />

comet3(x,y,z) displays a comet plot of the curve through the points<br />

[x(i),y(i),z(i)].<br />

comet3(x,y,z,p) specifies a comet body of length p∗length(y).<br />

Remarks Note that the trace left by comet3 is created by using an EraseMode of none,<br />

which means you cannot print the plot (you get only the comet head) and it<br />

disappears if you cause a redraw (e.g., by resizing the window).<br />

Examples Create a three-dimensional comet plot.<br />

See Also comet<br />

t = -10*pi:pi/250:10*pi;<br />

comet3((cos(2*t).^2).*sin(t),(sin(2*t).^2).*cos(t),t);<br />

2-293

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!