I have a block diagonal matrix called G.
I have diagonalized this matrix using eig and obtained the eigenvalues:
And also the eigenvectors:
Is there a way to sort the eigenvectors matrix so that the eigenvectors correspond to their respective block ? And also sort the eigenvalues matrix the same way as the eigenvectors.
Thanks in advance,