% NANMAX provides a replacement for MATLAB's nanmax that is almost
% compatible.

function [varargout] = nanmax(varargin)

% the standard MATLAB max function ignores NaNs from at least version 7.0.4 onwards
[varargout{1:nargout}] = max(varargin{:});

fieldtrip
github-repos/MATLAB/fieldtrip-fieldtrip/fieldtrip-c2039be598a02d86b39aae76bfa7aaa720f9801c/external/stats/nanmax.m
fieldtrip
github-repos/MATLAB/fieldtrip-fieldtrip
c2039be598a02d86b39aae76bfa7aaa720f9801c