stdStandard deviation
For a given vector
If NaN, the standard deviation NaN.
s = std(A)A is empty, it returns an empty array.A is a scalar, s is equal to 0.A is a vector, s is the standard deviation of elements along the longer dimension of A.A is a matrix or multi-dimensional array, elements of s are standard deviations of vectors of A along the first non-singleton dimension.s = std(A, w)s = std(A) above, with the input w that determines which of the above formulas will be used.w == 0, it uses Equation (1). When w == 1, it uses Equation (2).s = std(A, w, k)s = std(A, w) above, except that elements of s correspond to vectors of A along its k-th dimension.k should be a real positive integer scalar.k refers to a singleton dimension, s will be an array of zeros.