High-Pass Filter

What Is a High-Pass Filter?

A high-pass filter attenuates signals below a cutoff frequency (the stopband) and allows signals above the cutoff frequency (the passband). The amount of attenuation depends on the design of the filter.

High-pass filters are often used to clean up low-frequency noise, remove humming sounds in audio signals, redirect higher frequency signals to appropriate speakers in sound systems, and remove low-frequency trends from time-series data, thereby highlighting the high-frequency trends.

Two graphs: One showing high-pass filtering over time for an original frequency and filtered signal. The second has frequency in kHz on the x-axis and power spectrum in dB on the y-axis, also measuring an original and filtered signal.

High-pass filtering of musical signal.

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

FIR filters are very attractive because they are inherently stable. They can be designed to have 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

A graph with normalized frequency on the x-axis and magnitude in dB on the y-axis, measuring magnitude response of a high-pass Kaiser FIR filter.

Design specifications and response of a high-pass Kaiser FIR filter in MATLAB.

IIR filters are useful when computational resources are at a premium. However, stable, causal IIR filters do not have perfectly linear phase. IIR filters are commonly used in 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.

A graph with frequency in kHz on the x-axis and magnitude in dB on the y-axis measuring magnitude response of a high-pass Butterworth IIR filter.

Design specifications and response of a high-pass Butterworth IIR filter in MATLAB.

The highpass function in Signal Processing Toolbox™ is particularly useful to quickly filter signals. You can use designfilt and other algorithm-specific (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: GPUs for signal processing algorithms in MATLAB, software-defined radio, DSP System Toolbox, low-pass filter, Filter Design, quantization, notch filter, notch filter