function y = upsample(x,varargin)
%UPSAMPLE Upsample gpuArray input signal.
%   UPSAMPLE(X,N)
%   UPSAMPLE(X,N,PHASE)
%
%   See also UPSAMPLE, DOWNSAMPLE, gpuArray.

% Copyright 2020 The MathWorks, Inc.

% Ensure only data is on the GPU
if nargin>1
    [varargin{:}] = gather(varargin{:});
end
% Call the standard function
y = parallel.internal.array.callToolboxFunction('signal/signal/upsample.m', ...
    x, varargin{:});