function varargout = max(varargin)
%MAX Largest component
%   M = MAX(X)
%   C = MAX(X,Y)
%   [M,I] = MAX(X)
%   [M,I] = MAX(X,[],DIM)
%   [M,I] = MAX(X,[],...,'linear')
%   M = MAX(...,NANFLAG)

%   Copyright 2015-2019 The MathWorks, Inc.

try
    [varargout{1:max(nargout,1)}] = minmaxop(@max, varargin{:});
catch E
    throw(E);
end
end
