How to find the eigenvector associated with the highest eigenvalues.

3 次查看(过去 30 天)
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?

采纳的回答

Matt J
Matt J 2022-5-29
No, the output of eig() is not sorted, but the output of svd() is.
  3 个评论
Matt J
Matt J 2022-5-29
编辑:Matt J 2022-5-29
It depends what code you have used to perform the PCA. svd() does return sorted singular values

请先登录,再进行评论。

更多回答(1 个)

Torsten
Torsten 2022-5-29
编辑:Torsten 2022-5-29
Why not just trying whether A*x equals lambda_max*x within a certain tolerance ?

类别

Help CenterFile Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by