MATLAB è Simulink íà ðóññêîì

https://hub.exponenta.ru/

\Signal Processing Toolbox

Signal Processing Toolbox: ()

   \ \

UPSAMPLE

:

y = upsample(x,n)
y = upsample(x,n,phase)

:

y = upsample(x,n)

x n-1 . x . x . y x*n .

y = upsample(x,n,phase)

, , phase , , . phase , 0 n-1.

:

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

, :

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

:

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

: downsample, interp, interp1, resample, spline

   \ \


:


 Orphus