How to find the eigenvector associated with the highest eigenvalues.

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?

 Akzeptierte Antwort

Matt J
Matt J am 29 Mai 2022

1 Stimme

No, the output of eig() is not sorted, but the output of svd() is.

3 Kommentare

So you are confirming that PCA returns sorted scores (eigenvectros)?
Matt J
Matt J am 29 Mai 2022
Bearbeitet: Matt J am 29 Mai 2022
It depends what code you have used to perform the PCA. svd() does return sorted singular values
I used pca function. It uses SVD algorithm by default.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Torsten
Torsten am 29 Mai 2022
Bearbeitet: Torsten am 29 Mai 2022

0 Stimmen

Why not just trying whether A*x equals lambda_max*x within a certain tolerance ?

Kategorien

Mehr zu Linear Algebra finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by