FUNCTION REFERENCE
resample
Change a signal's sample rate with a delay-compensated polyphase FIR.
Change a signal's sample rate with a delay-compensated polyphase FIR.
Syntax
y = resample(x,p,q[,n,beta])Reduce positive integer p/q by their greatest common divisor. Design a 2*n*max(p,q)+1-tap Kaiser-windowed sinc with cutoff 1/max(p,q), unit DC gain before scaling by p, default n=10 and beta=5. Evaluate only the necessary convolution phases and remove the integer FIR group delay. The input is zero outside its extent; output length is ceil(length*p/q). Row vectors retain orientation; matrices operate down columns.
Example
y = resample([0 1 0 -1 0],3,2);Differences from MATLAB: finite real double inputs only, no time coordinates or supplied filter form. n is positive, beta is 0..100, ratios at most 65536, FIR order at most 4096, and input/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.