butter

Signal Processing

Butterworth lowpass filter design. Returns {b, a} filter coefficients for an nth-order filter with normalized cutoff frequency Wn (0 to 1, where 1 is Nyquist). Use with filter() or filtfilt() to apply.

Syntax

butter(n, Wn)
butter(n, Wn, type)

Examples

h = butter(4, 0.3); filter(h.b, h.a, randn(100))
▶ Run
h = butter(6, 0.1); freqz(h.b, h.a)
▶ 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.