Statistics Toolbox    
std

Standard deviation of a sample

Syntax

Description

y = std(X) computes the sample standard deviation of the data in X. For vectors, std(x) is the standard deviation of the elements in x. For matrices, std(X) is a row vector containing the standard deviation of each column of X.

std normalizes by n-1 where n is the sequence length. For normally distributed data, the square of the standard deviation is the minimum variance unbiased estimator of 2 (the second parameter).

The standard deviation is

where the sample average is

.

The std function is part of the standard MATLAB language.

Examples

In each column, the expected value of y is one.

See Also
cov, var


  squareform stepwise