Borrar filtros
Borrar filtros

How to find the eigenvector associated with the highest eigenvalues.

1 visualización (últimos 30 días)
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?

Respuesta aceptada

Matt J
Matt J el 29 de Mayo de 2022
No, the output of eig() is not sorted, but the output of svd() is.
  3 comentarios
Matt J
Matt J el 29 de Mayo de 2022
Editada: Matt J el 29 de Mayo de 2022
It depends what code you have used to perform the PCA. svd() does return sorted singular values
Nicola Dall'Osto
Nicola Dall'Osto el 29 de Mayo de 2022
I used pca function. It uses SVD algorithm by default.

Iniciar sesión para comentar.

Más respuestas (1)

Torsten
Torsten el 29 de Mayo de 2022
Editada: Torsten el 29 de Mayo de 2022
Why not just trying whether A*x equals lambda_max*x within a certain tolerance ?

Categorías

Más información sobre Dimensionality Reduction and Feature Extraction en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by