view plotEig.m @ 412:5eb312dfe2ab feature/diags

Add full matrix equivalent of spdiags
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 07 Feb 2017 13:58:03 +0100
parents 7067bf8adbfa
children
line wrap: on
line source

% Plots all the eigen values for a sparse matrix.
function plotEig(A)
    e = eig(full(A));
    e = sort(e);
    plot(e,'.')
end