function D = zeros(varargin)
%ZEROS Zeros codistributed array using codistributor
%   D = ZEROS(..., CODISTR) and D = ZEROS(..., CODISTR, ...) where CODISTR is a
%   1D codistributor, are equivalent to calling CODISTRIBUTED.ZEROS with the
%   same input arguments.
%
%   Example:
%     Create a 1000-by-1000 codistributed array of zeros:
%     spmd
%         D = zeros(1000, codistributor('1d'));
%     end
% 
%   See also ZEROS, CODISTRIBUTED/ZEROS, CODISTRIBUTOR1D

%   Copyright 2006-2013 The MathWorks, Inc.
    
[zerosFcn, inputArgs] = distributedutil.CodistParser.parseCodistributorBuildFcns(...
    'zeros', @codistributed.zeros, @zerosLike, varargin);

try
    D = zerosFcn(inputArgs{:});
catch E
    throw(E);
end

end % End of zeros.
