Notch filter specification


d = fdesign.notch(specstring, value1, value2, ...)
d = fdesign.notch(n,f0,q)
d = fdesign.notch(...,Fs)
d = fdesign.notch(...,MAGUNITS)


d = fdesign.notch(specstring, value1, value2, ...) constructs a notch filter specification object d, with the specification set to specstring and values provided for all members of the specstring. The possible specification entries, which are not case sensitive, are listed as follows:

  • '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'

where the variables are defined as follows:

  • N - Filter Order (must be even)

  • F0 - Center Frequency

  • Q - Quality Factor

  • BW - 3-dB Bandwidth

  • Ap - Passband Ripple (decibels)

  • Ast - Stopband Attenuation (decibels)

Different specification entries, resulting in different specification objects, may have different design methods available. Use the function designmethods to get a list of design methods available for a given specification. For example:

d  = fdesign.notch('N,F0,Q,Ap',6,0.5,10,1);

d = fdesign.notch(n,f0,q) constructs a notch filter specification object using the default specstring ('N,F0,Q') and setting the corresponding values to n, f0, and q.

By default, all frequency specifications are assumed to be in normalized frequency units. All magnitude specifications are assumed to be in decibels.

d = fdesign.notch(...,Fs) constructs a notch filter specification object while providing the sampling frequency of the signal to be filtered. Fs must be specified as a scalar trailing the other values provided. If you specify an Fs, it is assumed to be in Hz, as are all the other frequency values provided.

d = fdesign.notch(...,MAGUNITS) constructs a notch filter specification while providing the units for any magnitude specification given. MAGUNITS can be one of the following: 'linear', 'dB', or 'squared'. If this argument is omitted, 'dB' is assumed. The magnitude specifications are always converted and stored in decibels regardless of how they were specified. If Fs is provided, MAGUNITS must follow Fs in the input argument list.


collapse all

Design a notching filter with a passband ripple of 1 dB.

d  = fdesign.notch('N,F0,Q,Ap',6,0.5,10,1);
Hd = design(d,'SystemObject',true);

Introduced in R2011a