필터 지우기
필터 지우기

How to find the eigenvector associated with the highest eigenvalues.

조회 수: 1 (최근 30일)
Nicola Dall'Osto
Nicola Dall'Osto 2022년 5월 29일
편집: Torsten 2022년 5월 29일
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
Nicola Dall'Osto
Nicola Dall'Osto 2022년 5월 29일
I used pca function. It uses SVD algorithm by default.

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

추가 답변 (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