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.

2compass<br />

Purpose Plot arrows emanating from the origin<br />

Syntax compass(X,Y)<br />

compass(Z)<br />

compass(...,LineSpec)<br />

h = compass(...)<br />

compass<br />

Description A compass plot displays direction or velocity vectors as arrows emanating from<br />

the origin. X, Y, and Z are in Cartesian coordinates and plotted on a circular<br />

grid.<br />

compass(X,Y) displays a compass plot having n arrows, where n is the number<br />

of elements in X or Y. The location of the base of each arrow is the origin. The<br />

location of the tip of each arrow is a point relative to the base and determined<br />

by [X(i),Y(i)].<br />

compass(Z) displays a compass plot having n arrows, where n is the number of<br />

elements in Z. The location of the base of each arrow is the origin. The location<br />

of the tip of each arrow is relative to the base as determined by the real and<br />

imaginary components of Z. This syntax is equivalent to<br />

compass(real(Z),imag(Z)).<br />

compass(...,LineSpec) draws a compass plot using the line type, marker<br />

symbol, and color specified by LineSpec.<br />

h = compass(...) returns handles to line objects.<br />

Examples Draw a compass plot of the eigenvalues of a matrix.<br />

Z = eig(randn(20,20));<br />

compass(Z)<br />

2-295

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

Saved successfully!

Ooh no, something went wrong!