FUNCTION REFERENCE

pcacov

Principal components from a covariance matrix.

Principal components from a covariance matrix.

Syntax

[coeff,latent,explained] = pcacov(V)

V must be finite, symmetric and positive semidefinite. Eigenvalues are descending; explained contains percentage variance. The largest-magnitude coefficient entry in each column is positive.

Example

[c,l,e] = pcacov([4 0;0 1]);   % l = [4;1], e = [80;20]

Differences from MATLAB: Symmetry is checked with an absolute and relative tolerance of 1e-12; very small negative eigenvalues from rounding are clipped to zero.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.