MATLAB File Help: cv.PCA/compute Index
cv.PCA/compute

Performs Principal Component Analysis on the supplied dataset

pca.compute(data)
pca.compute(..., 'OptionName', optionValue, ...)

Input

Options

Note: RetainedVariance and MaxComponents are mutually exclusive options, and shoudn't be used together.

The method performs PCA of the supplied dataset. It is safe to reuse the same PCA structure for multiple datasets. That is, if the structure has been previously used with another dataset, the existing internal data is reclaimed and the new eigenvalues, eigenvectors, and mean are allocated and computed.

The computed eigenvalues are sorted from the largest to the smallest and the corresponding eigenvectors are stored as cv.PCA.eigenvectors rows.

See also
Method Details
Access public
Sealed false
Static false