FUNCTION REFERENCE

firls

Design a linear-phase FIR filter by least squares.

Design a linear-phase FIR filter by least squares.

Syntax

b = firls(n, f, a)

Syntax

b = firls(n, f, a, w)

Syntax

b = firls(n, f, a, ftype)

Syntax

b = firls(n, f, a, w, ftype)

f lists band edges in pairs on [0,1] (1 = Nyquist) and a the desired amplitude at each edge; the response is linear across each band and unconstrained between bands. w gives one weight per band. ftype 'hilbert' or 'differentiator' designs the antisymmetric types.

Example

b = firls(30, [0 0.3 0.4 1], [1 1 0 0]);

Example

b = firls(30, [0 0.3 0.4 1], [1 1 0 0], [1 10]);

Differences from MATLAB: none known for these forms.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.