function D = linspace( varargin )
%DISTRIBUTED.LINSPACE Linspace distributed array
%   DISTRIBUTED.LINSPACE(X1, X2) generates a row vector of 100 linearly
%   equally spaced points between X1 and X2.
%   
%   DISTRIBUTED.LINSPACE(X1, X2, N) generates N points between X1 and X2.
%   For N < 2, LINSPACE returns X2.
%    
%   X1 and X2 must be a single or double scalar. Both real and complex types are supported.
%   
%   Examples:
%       N  = 1000;
%       a = 0;
%       b = 10;
%       D = distributed.linspace(a, b, N); 
%   
%   See also LINSPACE, DISTRIBUTED, DISTRIBUTED/LOGSPACE, DISTRIBUTED/COLON.
%   


%   Copyright 2010-2020 The MathWorks, Inc.

% static method of distributed

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