MATLAB: Eigenvalues & Eigenvectors calculation problem

eigenvalue eigenvector

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.

Best Answer

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.
Related Question