Statistics Toolbox
  Go to function:
    Search    Help Desk 
nansum    Examples   See Also

Sum ignoring NaNs.

Syntax

Description

nansum(X) the sum treating NaNs as missing values.

For vectors, nansum(x) is the sum of the non-NaN elements of x. For matrices, nansum(X) is a row vector containing the sum of the non-NaN elements in each column of X.

Example

See Also

nanmax, nanmin, nanmean, nanmedian, nanstd



[ Previous | Help Desk | Next ]