FUNCTION REFERENCE
butter
Design a Butterworth IIR filter as transfer coefficients, zeros/poles/gain, or state space.
Design a Butterworth IIR filter as transfer coefficients, zeros/poles/gain, or state space.
Syntax
[b,a] = butter(n, Wn)Syntax
[z,p,k] = butter(n, Wn, ftype)Syntax
[A,B,C,D] = butter(n, Wn, 's')Wn is normalized to Nyquist for digital filters. A two-edge Wn defaults to bandpass; ftype is low, high, bandpass or stop. Append 's' for analog design. Orders range from 1 through 20 per low-pass prototype. State-space output uses controllable canonical companion form.
Example
[b,a] = butter(4, 0.25)Append 'sos' for SOS output: one output includes the gain, while [sos,g] returns unit-gain sections and a separate scalar gain.
Differences from MATLAB: Only the listed output forms, frequency types and orders through 20 are supported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.