简体   繁体   English

如何在matlab中找到一个大矩阵的六个以上的特征向量?

[英]How to find more than six eigenvectors of a large matrix in matlab?

I have a big matrix with size 12000x12000 and I need to find 100 eigenvectors with the highest 100 eigenvalues of that matrix (in order to perform a PCA dimension reduction).我有一个大小为 12000x12000 的大矩阵,我需要找到具有该矩阵最高 100 个特征值的 100 个特征向量(为了执行 PCA 降维)。

I tried using the matlab's eig function, which returns more eigenvectors than I need takes forever since the matrix size is too big.我尝试使用 matlab 的 eig 函数,由于矩阵太大,它返回的特征向量比我永远需要的要多。 I also noticed that there the 'eigs' function is much faster but it doesn't returns only 6 eigenvectors, which is less than what I need.我还注意到,'eigs' 函数要快得多,但它不只返回 6 个特征向量,这比我需要的要少。

any ideas what can I do?任何想法我能做什么?

Thanks!谢谢!

将第二个可选参数传递给eigs ,它控制返回多少特征向量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM