%% Increase Sample Rates
% Increase the sample rate of a sequence by a factor of 3.

x = [1 2 3 4];
y = upsample(x,3)

%
% Increase the sample rate of the sequence by a factor of 3 and add a phase offset of 2.

x = [1 2 3 4];
y = upsample(x,3,2)

%
% Increase the sample rate of a matrix by a factor of 3.

x = [1 2;
     3 4;
     5 6];
y = upsample(x,3)

% Copyright 2015 The MathWorks, Inc.