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.

compassPurpose2compassPlot arrows emanating from the originSyntaxDescriptioncompass(X,Y)compass(Z)compass(...,LineSpec)h = compass(...)A compass plot displays direction or velocity vectors as arrows emanating fromthe origin. X, Y, and Z are in Cartesian coordinates and plotted on a circulargrid.compass(X,Y) displays a compass plot having n arrows, where n is the numberof elements in X or Y. The location of the base of each arrow is the origin. Thelocation of the tip of each arrow is a point relative to the base and determinedby [X(i),Y(i)].compass(Z) displays a compass plot having n arrows, where n is the numberof elements in Z. The location of the base of each arrow is the origin. Thelocation of the tip of each arrow is relative to the base as determined by the realand imaginary components of Z. This syntax is equivalent tocompass(real(Z),imag(Z)).compass(...,LineSpec) draws a compass plot using the line type, markersymbol, and color specified by LineSpec.h = compass(...)returns handles to line objects.ExamplesDraw a compass plot of the eigenvalues of a matrix.Z = eig(randn(20,20));compass(Z)2-93

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

Saved successfully!

Ooh no, something went wrong!