Hello,
I have the following problem:
I calculated the eigenvalues of an (nxn)-Matrix with [V,D] = eig(A,'vector') and got physical correct results. But I have problem with the order of the eigenvalues. The Matrix elements are calculated via
and the order of the Eigenvalue vector has to fit to the order of the eigenvector |\psi> For example: I got Eigenvalues of D = [-2,-1,-1,0,0,1,1,2,] but need to get something like that D = [-1,0,1,...] Is it possible to keep the order condition or to gain it from somewhere? Maybe by another another possibility than eig() or eigs()?
Kind regards and thanks for your help,
rene