Resample uniform or nonuniform data to new fixed rate
interpolates the input signal to an intermediate uniform grid with a sample spacing
of (y
= resample(x
,tx
,fs
,p
,q
)p
/q
)/fs
. The
function then filters the result to upsample it by p
and
downsample it by q
, resulting in a final sample rate of
fs
. For best results, ensure that
fs
× q
/p
is at least twice as large as the highest frequency component of
x
.
resample
performs an FIR design using firls
, normalizes the result to account
for the processing gain of the window, and then implements a rate
change using upfirdn
.
decimate
| downsample
| firls
| interp
| interp1
| intfilt
| kaiser
| spline
| upfirdn
| upsample