function varargout = fftshift(varargin)
%FFTSHIFT Shift zero-frequency component to center of spectrum.
%   FFTSHIFT(X)
%   FFTSHIFT(X,DIM)
%   
%   See also FFTSHIFT, CODISTRIBUTED.


%   Copyright 2019-2020 The MathWorks, Inc.

% This function only works for 1d distributions
codistributed.pVerifyUsing1d('fftshift', varargin{1});

% try...catch prevents error being reported by internal
try
    [varargout{1:nargout}] = parallel.internal.flowthrough.fftshift(varargin{:});
catch ME
    throw(ME);
end

end