Sort Eigenvectors & Eigenvalues
by Calvin Price
24 Feb 2008
(Updated 25 Feb 2008)
Sort a set of eigenvectors and corresponding eigenvalues
|
Watch this File
|
| File Information |
| Description |
This function takes in two matrices P and D, presumably the output
from Matlab's eig function, and then sorts the columns of P to
match the sorted columns of D (going from largest to smallest)
EXAMPLE:
D =
-90 0 0
0 -30 0
0 0 -60
P =
1 2 3
1 2 3
1 2 3
[P,D]=sortem(P,D)
P =
2 3 1
2 3 1
2 3 1
D =
-30 0 0
0 -60 0
0 0 -90 |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (3) |
| 25 Feb 2008 |
John D'Errico
|
|
|
| 25 Feb 2008 |
Duane Hanselman
|
|
|
| 23 Oct 2010 |
ben payne
|
|
|
|
Contact us at files@mathworks.com