annotate plotEig.m @ 87:0a29a60e0b21

In Curve: Rearranged for speed. arc_length_fun is now a property of Curve. If it is not supplied, it is computed via the derivative and spline fitting. Switching to the arc length parameterization is much faster now. The new stuff can be tested with testArcLength.m (which should be deleted after that).
author Martin Almquist <martin.almquist@it.uu.se>
date Sun, 29 Nov 2015 22:23:09 +0100
parents 7067bf8adbfa
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
64
7067bf8adbfa Fixed some typing and added function to plot eigen values of a matrix.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
1 % Plots all the eigen values for a sparse matrix.
7067bf8adbfa Fixed some typing and added function to plot eigen values of a matrix.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
2 function plotEig(A)
7067bf8adbfa Fixed some typing and added function to plot eigen values of a matrix.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
3 e = eig(full(A));
7067bf8adbfa Fixed some typing and added function to plot eigen values of a matrix.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
4 e = sort(e);
7067bf8adbfa Fixed some typing and added function to plot eigen values of a matrix.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
5 plot(e,'.')
7067bf8adbfa Fixed some typing and added function to plot eigen values of a matrix.
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
6 end