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

3 Ansichten (letzte 30 Tage)
Yongjin Kim
Yongjin Kim am 31 Dez. 2015
Beantwortet: Image Analyst am 31 Dez. 2015
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

Antworten (2)

Walter Roberson
Walter Roberson am 31 Dez. 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)

Image Analyst
Image Analyst am 31 Dez. 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

Kategorien

Mehr zu Dimensionality Reduction and Feature Extraction finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by