12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

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.

comet3Purpose2comet3Three-dimensional comet plotSyntaxDescriptioncomet3(z)comet3(x,y,z)comet3(x,y,z,p)A comet plot is an animated graph in which a circle (the comet head) traces thedata points on the screen. The comet body is a trailing segment that follows thehead. The tail is a solid line that traces the entire function.comet3(z) displays a three-dimensional comet plot of the vector z.comet3(x,y,z) displays a comet plot 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).RemarksExamplesNote that the trace left by comet3 is created by using an EraseMode of none,which means you cannot print the plot (you get only the comet head) and itdisappears if you cause a redraw (e.g., by resizing the window).Create a three-dimensional comet plot.t = —10*pi:pi/250:10*pi;comet3((cos(2*t).^2).*sin(t),(sin(2*t).^2).*cos(t),t);See Alsocomet2-92

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

Saved successfully!

Ooh no, something went wrong!