var
Variance.
Syntax
Section titled “Syntax”V = var(A)V = var(A, w)V = var(A, w, dim)Description
Section titled “Description”Returns the variance of A. Same w and dim arguments as std. Equivalent to std(A, w, dim)^2.
Example
Section titled “Example”var([2 4 4 4 5 5 7 9]) % 4See also
Section titled “See also”Also categorized under: Range Functions / Math.