compass

Purpose

Compass plot.

Synopsis

compass(z)
compass(x,y)

Description

compass(z) draws a graph that displays the angle and magnitude of the complex elements of z as arrows emanating from the origin.

compass(x,y) is equivalent to compass(x+i*y). It displays the compass plot for the angles and magnitudes of the elements of matrices x and y.

Examples

Draw a simple compass plot of the eigenvalues of a matrix:

z = eig(randn(20,20))
compass(z)

See Also

feather, rose

(c) Copyright 1994 by The MathWorks, Inc.