Effacer les filtres
Effacer les filtres

How to find the eigenvector associated with the highest eigenvalues.

1 vue (au cours des 30 derniers jours)
Nicola Dall'Osto
Nicola Dall'Osto le 29 Mai 2022
Modifié(e) : Torsten le 29 Mai 2022
I ran PCA on a matrix and now I am asked to find the eigenvector associated to the highest eigenvalues.
How can it be done? Is the first eigenvetor in score the one associated with the higest eigenvalues?

Réponse acceptée

Matt J
Matt J le 29 Mai 2022
No, the output of eig() is not sorted, but the output of svd() is.
  3 commentaires
Matt J
Matt J le 29 Mai 2022
Modifié(e) : Matt J le 29 Mai 2022
It depends what code you have used to perform the PCA. svd() does return sorted singular values
Nicola Dall'Osto
Nicola Dall'Osto le 29 Mai 2022
I used pca function. It uses SVD algorithm by default.

Connectez-vous pour commenter.

Plus de réponses (1)

Torsten
Torsten le 29 Mai 2022
Modifié(e) : Torsten le 29 Mai 2022
Why not just trying whether A*x equals lambda_max*x within a certain tolerance ?

Produits


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by