Specification expression, specified as one of these character vectors:
'N,F0,Q' (default)
'N,F0,Q,Ap'
'N,F0,Q,Ast'
'N,F0,Q,Ap,Ast'
'N,F0,BW'
'N,F0,BW,Ap'
'N,F0,BW,Ast'
'N,F0,BW,Ap,Ast'
This table describes each option that can appear in the expression.
Specification optionDescriptionNFilter order (must be even)
F0Center frequency
QQuality factor
BW3 dB bandwidth
ApPassband ripple (dB)
AstStopband attenuation (dB)
The design methods available for designing the filter depend on the specification
expression. You can obtain these methods using the designmethods function. The table lists each specification expression
supported by fdesign.notch and the corresponding design methods
available.
Specification expressionSupported design methodFilter description'N,F0,Q'butterButterworth digital filter
'N,F0,Q,Ap'cheby1Chebyshev Type I digital filter
'N,F0,Q,Ast'cheby2Chebyshev Type II digital filter
'N,F0,Q,Ap,Ast'ellipElliptical digital filter
'N,F0,BW'butterButterworth digital filter
'N,F0,BW,Ap'cheby1Chebyshev Type I digital filter
'N,F0,BW,Ast'cheby2Chebyshev Type II digital filter
'N,F0,BW,Ap,Ast'ellipElliptical digital filter
To design the filter, call the design function with one of these design methods as an input. You can
choose the type of filter response by passing 'FIR' or
'IIR' to the design function. For more
details, see design.
For more details on the procedure, see Filter Design Procedure. For an example, see
Design Notch Filter.