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?

 채택된 답변

Matt J
Matt J 2022년 5월 29일

1 개 추천

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

댓글 수: 3

So you are confirming that PCA returns sorted scores (eigenvectros)?
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
I used pca function. It uses SVD algorithm by default.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Torsten
Torsten 2022년 5월 29일
편집: Torsten 2022년 5월 29일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Linear Algebra에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2022년 5월 29일

편집:

2022년 5월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by