Eigenvalues & Eigenvectors calculation problem
3 views (last 30 days)
Show older comments
Dear all,
I am looking for a way to force Matlab NOT arrange eigenvalues in a descending order.
Let me describe in more detail: I have a parametric matrix. it means its components changes from one step to another step. Therefore in every step there are different eigenvalues and eigenvectors.
But for me it is important to track/monitor for example what will happen to the first eigenvalue and its corresponding eigenvector from first matrix to second matrix and so on
I tried [D,V]=eig(A) and [V,D]=schur(A), but unfortunately in both cases the eigenvalues will be ordered!!
Any idea is appreciated.
Thanks.
0 Comments
Accepted Answer
John D'Errico
on 9 Mar 2011
Why do you think that just if the eigenvalues were not "sorted" that they would be in the order you prefer? This is a common problem, but the answer lies not in eig, but in what is done with the result of eig.
The solution lies in my eigenshuffle code, which sequences the eigenvalues (and vectors) into a consistent parametric order.
0 Comments
More Answers (0)
See Also
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!