Skip to content

std

Standard deviation.

S = std(A)
S = std(A, w)
S = std(A, w, dim)

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.

std([2 4 4 4 5 5 7 9]) % 2
std([1 2 3], 1) % 0.8165 (population)
  • var — Variance.
  • mean — Arithmetic mean.
  • rms — Root mean square.

Also categorized under: Range Functions / Math.