Statistics Toolbox    
nanstd

Standard deviation ignoring NaNs

Syntax

Description

y = nanstd(X) is the standard deviation computed by treating NaNs as missing values.

For vectors, nanstd(x) is the standard deviation of the non-NaN elements of x. For matrices, nanstd(X) is a row vector containing the standard deviations of the non-NaN elements in each column of X.

Example

See Also
nanmax, nanmin, nanmean, nanmedian, nansum


  nanmin nansum