


% -*- texinfo -*-
% @deftypefn {Function File} {[@var{v}, @var{idx}] =} nanmax (@var{X})
% @deftypefnx{Function File} {[@var{v}, @var{idx}] =} nanmax (@var{X}, @var{Y})
% Find the maximal element while ignoring NaN values.
%
% @code{nanmax} is identical to the @code{max} function except that NaN values
% are ignored. If all values in a column are NaN, the maximum is
% returned as NaN rather than [].
%
% @seealso{max, nansum, nanmin, nanmean, nanmedian}
% @end deftypefn