function varargout = ind2sub(varargin)
%IND2SUB overloaded for distributed arrays
%   IND2SUB is used to determine the equivalent subscript values
%   corresponding to a given single index into an array.
%   
%   Example:
%       ind = distributed.colon(1,87,400);
%       sz = [20 20];
%       [rows,cols] = ind2sub(sz,ind)
%   
%   See also IND2SUB, DISTRIBUTED.SUB2IND, DISTRIBUTED.


%   Copyright 2011-2023 The MathWorks, Inc.

[varargout{1:max(nargout, 1)}] = distributedutil.distributedSpmdWrapper( @ind2sub, varargin{:} );
