Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

fdesign.notch

Notch filter specification

Syntax

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

Description

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);
% designmethods(d) returns
% Design Methods for class fdesign.notch (N,F0,Q,Ap):
% cheby1

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.

Examples

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);
    fvtool(Hd)

Introduced in R2011a

Was this topic helpful?