How do i obtain only the first principal component?
显示 更早的评论
For certain measurements i need to obtain only the numeric value of the first principal component from the matrix. Can someone please tell me how do i go about it?
采纳的回答
更多回答(1 个)
Andrew Knyazev
2018-8-12
0 个投票
https://www.mathworks.com/matlabcentral/fileexchange/48-lobpcg-m can be used as the method for calculating the eigenvector corresponding to the largest eigenvalue of the covariance matrix without calculating all eigenvalues, or even without explicitly calculating the covariance matrix itself.
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Algebra 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!