Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

cov

Covariance

Syntax

  • C = cov(M)

Input argument

  • M - a vector or matrix

Output argument

  • V - Covariance of M.

Description

C = cov(M) returns the covariance.

Example

M = [4 -7 3; 1 4 -2; 10 7 9];
C = cov(M)

See also

var, mean.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET