function D = colon( varargin )
%DISTRIBUTED.COLON Build distributed array equivalent to A:B or A:D:B
%   C = DISTRIBUTED.COLON(A,B)
%   C = DISTRIBUTED.COLON(A,D,B)
%   
%   Example:
%       N = 1000;
%       C = distributed.colon(1,N); % Distributes vector 1:N over the workers
%   
%   See also COLON, DISTRIBUTED.


%   Copyright 2008-2020 The MathWorks, Inc.

% static method of distributed

D = distributed.sBuild( @codistributed.colon, 'colon', varargin{:} );
end
