function output = colonize(input)
%COLONIZE Apply colon operator to input whether it is codistributed or not.

%   See also DISTRIBUTED/COLONIZE, COLON

% Copyright 2023 The MathWorks, Inc.

if isdistributed(input)
    output = colonize(input);
else
    output = input(:);
end
end
