Clear Filters
Clear Filters

Eigenvalues & Eigenvectors calculation problem

1 view (last 30 days)
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.

Accepted Answer

John D'Errico
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.

More Answers (0)

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!