resample
This function resamples in the input sequence x supplied by a factor of p/q.
Calling Sequence
y = resample(x, p, q)
y = resample(x, p, q, h)
[y, h] = resample(...)
Parameters
x:
scalar, vector or matrix of real or complex numbers
p:
positive integer value
q:
positive integer value
h:
scalar, vector or matrix of real or complex numbers
Description
This is an Octave function.
This function resamples in the input sequence x supplied by a factor of p/q. If x is a matrix, then every column is resampled changing the sample rate of x by a factor of p/q.
This is performed using a polyphase algorithm. The impulse response h, given as parameter 4, of the antialiasing filter is either specified or designed with a Kaiser-windowed sinecard.
Examples