Function File: dat = resample (dat, p, q)
Function File: dat = resample (dat, p, q, n)
Function File: dat = resample (dat, p, q, h)

Change the sample rate of the output and input signals in dataset dat by a factor of p/q. This is performed using a polyphase algorithm. The anti-aliasing FIR filter can be specified as follows: Either by order n (scalar) with default value 0. The band edges are then chosen automatically. Or by impulse response h (vector). Requires the signal package to be installed.

Algorithm
Uses functions fir1 and resample from the signal package.

References
[1] J. G. Proakis and D. G. Manolakis, Digital Signal Processing: Principles, Algorithms, and Applications, 4th ed., Prentice Hall, 2007. Chap. 6

[2] A. V. Oppenheim, R. W. Schafer and J. R. Buck, Discrete-time signal processing, Signal processing series, Prentice-Hall, 1999

Package: control