How to identify repeated eigenvalues of a matrix?
Mostrar comentarios más antiguos
Take the matrix A as an example:
A = [1 1 0 0;0 1 1 0;0 0 1 0;0 0 0 3]
The eigenvalues of A are: 1,1,1,3. How can I identify that there are 2 repeated eigenvalues? (the value 1 repeated two times)
Thank you in advance.
Respuesta aceptada
Más respuestas (1)
Christine Tobler
el 17 de Abr. de 2018
0 votos
For general matrices, the eigenvalues will typically have a bit of round-off error, so repeated eigenvalues will not be exactly identical. In those cases, you should use uniquetol instead of just unique in the algorithm proposed by Aditya.
1 comentario
Mohammad Ayoub
el 21 de Abr. de 2018
Categorías
Más información sobre Eigenvalues & Eigenvectors en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!