Notch Filter

What Is a Notch Filter?

A notch filter is a filter that weakens signals in a small range of frequencies and allows all other frequencies to pass through unchanged.

Notch filters are effective at removing interfering signals at specific frequencies. In audio and other signal applications, the background hum produced by the electrical grid (often 60 Hz) can be removed by designing a notch filter for that frequency. In software-defined radios, interfering FM broadcast signals can be removed with notch filters. A notch filter is a type of bandstop filter made from a combination of high-pass and low-pass filters. Notch filters are also referred to as “band-rejection filters.”

Notch filter magnitude response. The response is 0 dB everywhere except for 0.5 radians per sample, where it is -80 dB.

Magnitude response of a notch filter in the Filter Visualization Tool in MATLAB.

You can use MATLAB® or Simulink® to design finite-impulse response (FIR)–based and infinite-impulse response (IIR)–based filters, two common notch filter methods.

FIR Filters

FIR filters are an attractive option because they are inherently stable. They can be designed to have a linear phase that introduces a delay in the filtered signal while maintaining the waveform shape. Nonetheless, these filters can have long transient responses and might prove computationally expensive in certain applications. FIR filters are useful in audio, biomedical, radar, and other applications where the waveform shape provides useful information. Common design methods for low-pass FIR-based filters include Kaiser windowleast squares, and equiripple.

Notch filter magnitude response where the response is equiripple around 0 dB everywhere except for 540 to 550 Hz, where it is -4 dB.

Magnitude response of an FIR notch filter designed with MATLAB.

IIR Filters

IIR filters are useful when computational resources are at a premium. IIR filters reduce hardware requirements by using fewer filter coefficients. Stable, causal IIR filters, however, do not have a perfectly linear phase. IIR filters are commonly used in applications, such as audio equalization, biomedical sensor signal processing, IoT/IIoT smart sensors, and high-speed telecommunication/RF applications. Design methods for IIR-based filters include Butterworth, Chebyshev (Type I and Type II), and elliptic.

Notch filter magnitude response where the response is 0 dB everywhere except for 540 to 550 Hz, where it is -160 dB.

Magnitude response of an IIR notch filter designed with MATLAB.

Filter Design in MATLAB

The bandstop function in Signal Processing Toolbox™ is particularly useful to quickly filter signals. You can use designfilt and other algorithm-specific (e.g., butter, fir1) functions when more control is required on parameters such as filter type, filter order, and attenuation. For more information on filter design, see Signal Processing Toolbox .


See also: DSP system toolbox, low-pass filter, filter design, quantization, high-pass filter, bandpass filter