view plotEig.m @ 874:95993ad2bd70

Add function to deal the fields of a struct to variables
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 01 Nov 2018 14:10:02 +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