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


%   Copyright 2016-2022 The MathWorks, Inc.

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

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