function varargout = shiftdim(x, varargin)
%SHIFTDIM Shift dimensions of a codistributed array.
%   B = SHIFTDIM(X,N) 
%   [B, NSHIFTS] = SHIFTDIM(X)    
%   
%   See also SHIFTDIM, CIRCSHIFT, RESHAPE, SQUEEZE, CODISTRIBUTED.


%   Copyright 2011-2023 The MathWorks, Inc.

% Gather trailing arguments and call in-memory implementation.
varargin = distributedutil.CodistParser.gatherElements(varargin);
[varargout{1:max(nargout, 1)}] = parallel.internal.array.callToolboxFunction(...
        "matlab/elmat/shiftdim", x, varargin{:});
end
