How can I use principal component analysis(PCA) function from toolbox?
27 views (last 30 days)
Show older comments
Hello, I have a question about using matlab.
When I typed the "pca" word on your Support tap.
The path says "Statistics oand Machine Learning Toolbox > Dimensionality Reduction"
I tried to find that path but I couldn't. Where is it? I don't know how to find it.
I'm the beginner to using matlab. So, I would like to say it.
When you give me the answer, please tell it in detail. It will be good to the answer with some image if you can.
Sincerely,
Yongjin, Kim
0 Comments
Answers (2)
Walter Roberson
on 31 Dec 2015
The function is part of the Statistics and Machine Learning toolbox. If you have that toolbox licensed and installed (for example as part of a Student Version license) then you can just invoke it by name, pca() such as
X = rand(5,8);
pca(X)
0 Comments
Image Analyst
on 31 Dec 2015
Type ver on the command line to see if you have that toolbox, or else run this code to check your license.
% Check that user has the Statistics and Machine Learning Toolbox installed.
hasToolbox = license('test','Statistics_toolbox')
if ~hasToolbox
% User does not have the toolbox installed.
message = sprintf('Sorry, but you do not seem to have\nthe Statistics and Machine Learning Toolbox.');
uiwait(warndlg(message));
else
% User does not have the toolbox installed.
message = sprintf('Congratulations, you have\nthe Statistics and Machine Learning Toolbox.');
uiwait(helpdlg(message));
end
0 Comments
See Also
Categories
Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!