www.gusucode.com > signal 案例源码程序 matlab代码 > signal/IncreaseSampleRatesExample.m

    %% Increase Sampling Rates
%  Increase the sampling rate of a sequence by 3.

% Copyright 2015 The MathWorks, Inc.


%%

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

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

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

%%
% Increase the sampling rate of a matrix by 3.

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