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

% Copyright 2015 The MathWorks, Inc.


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

figure
compass(Z)