MATLAB Answers

Feature vector dimension reduction (PCA)

5 views (last 30 days)
Andrea Daou
Andrea Daou on 9 Jun 2021
Commented: Andrea Daou on 11 Jun 2021
How can reduce a feature vector of dimension K*N to a feature vectore of dimension K*M with M<N (image classification task)?
I read about PCA but I am not understanding how can I use it to get the K*M vector.
Appreciate your help!
J. Alex Lee
J. Alex Lee on 9 Jun 2021
I'm not sure what is returned by pca(), but presumably coeff is KxN (the rotated coefficents)? Then is your question how to decide M? Is score a vector 1xN?

Sign in to comment.

Accepted Answer

the cyclist
the cyclist on 9 Jun 2021
I have written an answer to this question that explains in detail how to use MATLAB's pca function, including how to do dimensional reduction. I suggest that you read that question, answer, comments from other users, and my responses. I expect this will answer your question.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!