<< rectwin FOSSEE Signal Processing Toolbox residued >>

FOSSEE Signal Processing Toolbox >> FOSSEE Signal Processing Toolbox > resample

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.hange 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

resample(1,2,3)
ans =  0.66667

Report an issue
<< rectwin FOSSEE Signal Processing Toolbox residued >>