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

3 ビュー (過去 30 日間)
Yongjin Kim
Yongjin Kim 2015 年 12 月 31 日
回答済み: Image Analyst 2015 年 12 月 31 日
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 Center および File ExchangeDimensionality 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