Control Package: @iddata/resample
Categories &
Functions List
- 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
- J. G. Proakis and D. G. Manolakis, Digital Signal Processing: Principles, Algorithms, and Applications, 4th ed., Prentice Hall, 2007. Chap. 6
- A. V. Oppenheim, R. W. Schafer and J. R. Buck, Discrete-time signal processing, Signal processing series, Prentice-Hall, 1999
Source Code: @iddata/resample