FUNCTION REFERENCE
firpm
Design an equiripple FIR by iterative Remez exchange.
Design an equiripple FIR by iterative Remez exchange.
Syntax
b = firpm(n,f,a[,w][,'bandpass'|'hilbert'|'differentiator'])Each increasing pair in f defines a constrained band relative to Nyquist; a supplies the two endpoint amplitudes per band and interpolates linearly inside it. w supplies one positive error weight per band, default one. 'bandpass' selects symmetric linear phase (also for lowpass, highpass and multiband responses). 'hilbert' selects antisymmetry. 'differentiator' also uses a(f) itself as the desired amplitude, with error weight w/f on bands with nonzero desired amplitudes; [0 pi] over [0 1] requests magnitude omega in radians/sample. Odd/even tap counts cover symmetry types I-IV. Follows alternating-error exchange (McClellan, Parks and Rabiner, 1973), using barycentric Lagrange interpolation on a dense mesh of 128 points per independent coefficient. Both edges of every band are candidates; the exchange retains the largest alternating errors. A failed or unconverged exchange returns an error.
Example
b = firpm(32,[0 0.3 0.45 1],[1 1 0 0]);Example
b = firpm(31,[0.1 1],[1 1],'hilbert');Example
b = firpm(21,[0 1],[0 pi],'differentiator');Differences from MATLAB: finite real designs only, order 1..256, at most 32 bands and 100 iterations under a bounded work budget; no custom response callbacks or diagnostic outputs. Exact endpoint gains must respect the chosen symmetry. Grid rounding and convergence can differ from other Remez implementations.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.