fir1

Signal Processing

FIR lowpass filter design using windowed sinc method. Returns an array of n+1 filter coefficients with normalized cutoff frequency Wn. Apply with filter(b, [1], x).

Syntax

fir1(n, Wn)
fir1(n, Wn, type)

Examples

b = fir1(20, 0.3); filter(b, [1], randn(100))
▶ Run
b = fir1(50, 0.25); freqz(b, [1])
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.