Main Content

Bandstop-filter signals

filters the input signal `y`

= bandstop(`x`

,`wpass`

)`x`

using a bandstop filter with a
stopband frequency range specified by the two-element vector
`wpass`

and expressed in normalized units of
*π* rad/sample. `bandstop`

uses a
minimum-order filter with a stopband attenuation of 60 dB and compensates for
the delay introduced by the filter. If `x`

is a matrix, the
function filters each column independently.

specifies additional options for any of the previous syntaxes using name-value
pair arguments. You can change the stopband attenuation, the transition band
steepness, and the type of impulse response of the filter.`y`

= bandstop(___,`Name,Value`

)

`[`

also returns the `y`

,`d`

] = bandstop(___)`digitalFilter`

object
`d`

used to filter the input.

`bandstop(___)`

with no output arguments plots
the input signal and overlays the filtered signal.