Nom

Resample — Resample a discrete time signal

Calling Sequence

[tn,xn] = Resample(t,x,step)
[tn,xn] = Resample(t,x,step,tbounds)

Parameters

t

a real vector. The initial time discretization points. This vector must be in a strictly increasing order.

x

it can be:

  • a real vector. The initial signal values at discretization points. This vector must have the same number of elements as t.
  • a real matrix. the resampling is done colum by colums. The number of rows must eb equal to the number of elements of t.
step

a real positive scalar. the new discretisation time step

tbounds

an optional real vector with 2 elements [tmin,tmax], which can be used to restrict the time interval for resampling. The default value is [t(1),t($)].

tn

a real row vector. The new time discretization points.

xn

a real row vector or a matrix, The signal values at discretization points.

Description

[tn,xn] = Resample(t,x,step) resample the discrete signal (t(k),x(k)) with the time step given by the step argument using spline interpolation.

Examples

    t=0:10;
    x=t^2;
    [tn,xn]=Resample(t,x,0.1)
    clf;plot(t,x,'x',tn,xn,'+r')
    

See Also

splin , interp

Authors

Serge Steer, INRIA

Used Functions

interp, splin.