How can I use principal component analysis(PCA) function from toolbox?

3 次查看(过去 30 天)
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

回答(2 个)

Walter Roberson
Walter Roberson 2015-12-31
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)

Image Analyst
Image Analyst 2015-12-31
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

类别

Help CenterFile Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by