std
Standard deviation.
Syntax
Section titled “Syntax”S = std(A)S = std(A, w)S = std(A, w, dim)Description
Section titled “Description”Returns the standard deviation of A. With w = 0 (default), uses the unbiased (N-1) normalization. With w = 1, uses the population (N) normalization. With a third argument dim, computes along that dimension.
Examples
Section titled “Examples”std([2 4 4 4 5 5 7 9]) % 2std([1 2 3], 1) % 0.8165 (population)See also
Section titled “See also”Also categorized under: Range Functions / Math.