% -*- 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