How to find the eigenvector associated with the highest eigenvalues.

3 views (last 30 days)
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?

Accepted Answer

Matt J
Matt J on 29 May 2022
No, the output of eig() is not sorted, but the output of svd() is.
  3 Comments
Matt J
Matt J on 29 May 2022
Edited: Matt J on 29 May 2022
It depends what code you have used to perform the PCA. svd() does return sorted singular values

Sign in to comment.

More Answers (1)

Torsten
Torsten on 29 May 2022
Edited: Torsten on 29 May 2022
Why not just trying whether A*x equals lambda_max*x within a certain tolerance ?

Categories

Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!