filtering harmonics: preserving overall spectrum without simple notch filtering

I'm trying to remve the (mains power) harmonics from the signal shown below. A notch filter would reduce the signal to zero in these bands of peaks, which is too strong as I would like to preserve ('interpolate') the noisy overall shape of the spectrum, across the entire frequency axis. Is there a tool/method/'intelligent' way of doing this?

Answers (1)

Please take a look at the following example:
The example guides you to use wavelet packets to remove harmonics from a signal. It compares the results with notch filters and shows that the signal spectral shape is better preserved with the wavelet packet technique.

Asked:

on 7 Feb 2024

Edited:

on 13 Feb 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!