


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