function varargout = detrend(varargin)
%DETREND Remove a polynomial trend, usually for FFT processing.
%   Y = DETREND(X)
%   Y = DETREND(X,N)
%   Y = DETREND(X,N,BP)
%   Y = DETREND(___,NANFLAG)
%   Y = DETREND(___,'Continuous',TF)
%   Y = DETREND(___,'SamplePoints',S)
%   
%   See also DETREND, GPUARRAY.


%   Copyright 2015-2019 The MathWorks, Inc.

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