function varargout = movmax(varargin)
%MOVMAX Moving maximum value for codistributed data.
%   Y = MOVMAX(X,K)
%   Y = MOVMAX(X,[NB NF])
%   Y = MOVMAX(...,NRM)
%   Y = MOVMAX(...,NRMDIM)
%   Y = MOVMAX(...,MISSING)
%   Y = MOVMAX(...,'Endpoints',ENDPT)
%   Y = MOVMAX(X,K,...,'SamplePoints',T)
%   Y = MOVMAX(X,[NB NF],...,'SamplePoints',T)
%   
%   Example:
%   spmd
%      t = 1:10;
%      x = codistributed([4 8 6 -1 -2 -3 -1 3 4 5]);
%      yc = movmax(x,5);
%      plot(t,x,t,yc);
%   end
%   
%   See also MOVMAX, codistributed.


%   Copyright 2021-2022 The MathWorks, Inc.

narginchk(2, inf);
nargoutchk(0, 1);

[varargout{1:nargout}] = movfunCommon(@movmax, varargin{:});
end
