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

var

Variance

Syntax

  • V = var(M)

Input argument

  • M - a vector or matrix

Output argument

  • V - Variance of M.

Description

V = var(M) returns the variance of the elements of M along the first array dimension whose size does not equal 1.

Example

M = [4 -7 3; 1 4 -2; 10 7 9];
V = var(M)

See also

cov, mean.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET