FUNCTION REFERENCE

fir1

Window-based FIR filter design.

Window-based FIR filter design.

Syntax

b = fir1(order, Wn)

Syntax

b = fir1(order, Wn, type, window, 'noscale')

Wn is one or two normalized cutoffs. type, window (a vector) and 'scale' or 'noscale' are optional and must come in that order. Returns a row of order+1 coefficients.

Example

b = fir1(20, 0.3);   % 21 coefficients

Differences from MATLAB: Order must be a positive integer. Odd order for high or stop designs is raised by one, as in MATLAB.

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