How do i obtain only the first principal component?
Show older comments
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?
Accepted Answer
More Answers (1)
Andrew Knyazev
on 12 Aug 2018
0 votes
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.
Categories
Find more on Linear Algebra in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!