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

Mean ignoring NaNs

Syntax

Description

nanmean(X) the average treating NaNs as missing values.

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

Example

See Also

nanmin, nanmax, nanmedian, nanstd, nansum



[ Previous | Help Desk | Next ]