butter(n, Wn)

import signals.filters.iir-1

Design Butterworth IIR filter with Matlab-like syntax.

import signals.filters.iir-1;
Butterworth digital filter design
filt=butter(4,0.3[0.3,0.7],"")
nThe order of the filter.
WnThe relative corner frequency.
return valueTransfer function object.

The function can be used in several ways:

The parameter Wn is the relative corner frequency of the filter for digital filters. For analog filters, it is specified in radians per second. The size of the Wn depends on the type of the filter:The relative frequency in case of digital filters is defined as $ 2\frac{f}{f_s} $, where f is the frequency of interest. Thus 0 means 0Hz, 1 means the Nyquist rate (fs/2).

The parameter type is a string value describing the filter type:

For more information, see http://en.wikipedia.org/wiki/Butterworth_filter.
import signals.filters.iir-1;
Butterworth digital filter design
filt=butter(4,0.3[0.3,0.7],"")
import signals.filters.iir-1;
Butterworth analog filter design
filt=butter(4,0.3[0.3,0.7],"","s")
import signals.filters.iir-1;
Plot filter characteristics
filt.plot()