Home > freetb4matlab > statistics > nanmean.m

nanmean

PURPOSE ^

% Compute the mean value while ignoring NaN values.

SYNOPSIS ^

function v = nanmean (X, varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{v} =} nanmean (@var{X})
% @deftypefnx{Function File} {@var{v} =} nanmean (@var{X}, @var{dim})
% Compute the mean value while ignoring NaN values.
%
% @code{nanmean} is identical to the @code{mean} function except that NaN values
% are ignored.  If all values are NaN, the mean is returned as NaN. 
%
% @seealso{mean, nanmin, nanmax, nansum, nanmedian}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003