FUNCTION REFERENCE
interp
Interpolate by an integer factor with a windowed-sinc lowpass.
Interpolate by an integer factor with a windowed-sinc lowpass.
Syntax
y = interp(x,r[,l,alpha])Use a 2*l*r+1-tap Kaiser-windowed cardinal sinc (beta=5), cutoff 1/r relative to the output Nyquist and exact delay compensation. The sinc has center tap one and zeros at every other original sample position; it is not normalized for DC, so original samples are preserved. interp(x,1) returns x. Defaults: l=4, alpha=0.5. alpha declares the input band of interest [0,alpha], rather than moving the cutoff into that band. This fixed-window design uses the same taps for each alpha; increase l for a narrower transition and better fidelity between original samples near input Nyquist. Output has r times as many samples. Input is zero outside its extent. Matrices operate down columns.
Example
y = interp([0 1 0 -1 0],4);Differences from MATLAB: this is a windowed-sinc design, not the Oetken/Parks/Schuessler design. Finite real double inputs only; 1<=r<=1024, 1<=l<=2048, 0<alpha<=1, order at most 4096 and output at most 1048576 elements.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.