%% Create Compass Graph
% Create a compass graph of the eigenvalues of a random matrix.

rng(0,'twister') % initialize random number generator
M = randn(20,20);
Z = eig(M);

figure
compass(Z)

% Copyright 2015 The MathWorks, Inc.