bpf

IIR, band-pass filtering; Apply a band-pass filter to the audio signal

Syntax

y = bpf ( x,fcut1,fcut2,order[=8],type[=1],dBpass[=.5],dBstop[=-40] )
y = x.bpf ( fcut1,fcut2,order[=8],type[=1],dBpass[=.5],dBstop[=-40] )

Inputs

ArgumentTypeDescriptionUnit
xaudioaudio signalHz
fcut1scalarcut-off frequency1Hz
fcut2scalarcut-off frequency2dB
orderscalarorder of the IIR filterdB
typescalarIIR filter type (1: Butterworth, 2: Chebyshev, 3: Elliptic)-
dBpassscalarPassband ripple allowed-
dBstopscalarStopband attenuation-

Outputs / Return Value

Notes

Examples

bpf(x, 2000, 4000)

See Also

Review Status