Вы находитесь на странице: 1из 9

Warning: Directory access failure: C:\MATLAB6p1\work\pls_toolbox.

To get started, select "MATLAB Help" from the Help menu.

Import Wizard created variables in the current workspace.


>> help auto

auto.m not found.

>> help auto

auto.m not found.

??? Name is nonexistent or not a directory

>> help auto

auto.m not found.

??? Name is nonexistent or not a directory

??? Name is nonexistent or not a directory

??? Name is nonexistent or not a directory

??? Name is nonexistent or not a directory

>> help pca

pca.m not found.

??? Name is nonexistent or not a directory

??? Name is nonexistent or not a directory

??? Name is nonexistent or not a directory

??? Name is nonexistent or not a directory

>> help pca

PCA Principal components analysis


This function uses the svd to perform pca on a data matrix.
It is assumed that samples are rows and variables are columns.
The inputs are the input matrix (data), an optional variable
(plots) that controls the graphs produced (see below), an
optional vector (scl) for plotting scores against and
an optional variable (lv) which specifies the number of
principal components to use in the model and which suppresses
the prompt for number of PCs. The outputs are the scores
(scores), loadings (loads), variance info (ssq), residuals (res),
calculated q limit (q), and t^2 limit (tsq). The I/O format is
[scores,loads,ssq,res,q,tsq] = pca(data,plots,scl,lvs);

Set plots = 0 to suppress all plots, plots = 1 for plots with


no confidence limits and plots = 2 for plots with limits.
Note: with plots = 0 and lv specified, this routine requires
no interactive user input. If you would like to scale the data
before processing use the functions auto or scale.

>> help auto

AUTO Autoscales matrix to mean zero unit variance


Autoscales a matrix (x) and returns the resulting matrix (ax)
with mean-zero unit variance columns, a vector of means (mx)
and a vector of standard deviations (stdx) used in the scaling.
I/O format is: [ax,mx,stdx] = auto(x);

>> [ax,mx,stdx] = auto(cha);


>> help pca

PCA Principal components analysis


This function uses the svd to perform pca on a data matrix.
It is assumed that samples are rows and variables are columns.
The inputs are the input matrix (data), an optional variable
(plots) that controls the graphs produced (see below), an
optional vector (scl) for plotting scores against and
an optional variable (lv) which specifies the number of
principal components to use in the model and which suppresses
the prompt for number of PCs. The outputs are the scores
(scores), loadings (loads), variance info (ssq), residuals (res),
calculated q limit (q), and t^2 limit (tsq). The I/O format is
[scores,loads,ssq,res,q,tsq] = pca(data,plots,scl,lvs);

Set plots = 0 to suppress all plots, plots = 1 for plots with


no confidence limits and plots = 2 for plots with limits.
Note: with plots = 0 and lv specified, this routine requires
no interactive user input. If you would like to scale the data
before processing use the functions auto or scale.

>> [scores,loads,ssq,res,q,tsq] = pca(ax);


Warning: This function is obsolete and may be removed in future versions.
Use CLF instead.
> In C:\MATLAB6p1\toolbox\matlab\graphics\clg.m at line 11
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 75

Percent Variance Captured by PCA Model

Principal Eigenvalue % Variance % Variance


Component of Captured Captured
Number Cov(X) This PC Total
--------- ---------- ---------- ----------
1 4.24e+000 70.63 70.63
2 8.94e-001 14.90 85.53
3 6.36e-001 10.59 96.12
4 1.31e-001 2.19 98.31
5 6.74e-002 1.12 99.43
6 3.39e-002 0.57 100.00
How many principal components do you want to keep? 3
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\TTESTP.M at line 36
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 137

The 95 Percent Q limit is 0.668022


Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197
Warning: This usage of beta(x,z,w) is obsolete and will be eliminated
in future versions. Please use BETAINC(X,Z,W) instead.
> In C:\MATLAB6p1\toolbox\matlab\specfun\beta.m at line 23
In C:\MATLAB6p1\work\PLS_TOOL\FTEST.M at line 24
In C:\MATLAB6p1\work\PLS_TOOL\PCA.M at line 197

The 95 Percent T^2 limit is 9.61496


>>
>> help ptlscrs

ptlscrs.m not found.

>> help pltscrs

PLTSCRS Plots scores from PCA


This function may be used to make 2-D and 3-D plots
of scores vectors against each other. The inputs to
the function are the matrix of scores vectors (scores)
where column represents a scores vector from PCA and
an optional variable of labels (labels) which describe the
original data samples.
Note: labels must be a "column vector" where each label
is in single quotes and has the same number of letters.
Example: labels = ['Al '; 'Jim '; 'Biff'; 'Bob ']
The function will prompt to select 2 or 3-D plots,
for for the numbers of the PCs, and if you would like
"drop lines" and axes on the 3-D plots.
The I/O format is: pltscrs(scores,labels)

>> pltscrs(scores)
Do you want eliminate the labels on the points? (Yes = 1) 3
Would you like to do 3-D scores plots? (Yes = 1) 5
What PC do you want on the x-axis? (Max = 3) 1
What PC do you want on the y-axis? (Max = 3) 2
Do you want to make another plot? (Yes = 1)
>> pltloads(loads)
Do you want eliminate the labels on the points? (Yes = 1) 3
Would you like to do 3-D loadings plots? (Yes = 1) 3
What PC do you want on the x-axis? (Max = 3) 1
What PC do you want on the y-axis? (Max = 3) 2
Do you want to make another plot? (Yes = 1)

Вам также может понравиться