Function Reference
— Function File: std (x)
— Function File: std (x, opt)
— Function File: std (x, opt, dim)

If x is a vector, compute the standard deviation of the elements of x.

          std (x) = sqrt (sumsq (x - mean (x)) / (n - 1))

If x is a matrix, compute the standard deviation for each column and return them in a row vector.

The argument opt determines the type of normalization to use. Valid values are

0:
normalizes with N-1, provides the square root of best unbiased estimator of the variance [default]
1:
normalizes with N, this provides the square root of the second moment around the mean

The third argument dim determines the dimension along which the standard deviation is calculated.

See also: mean median