Design filter to remove two different frequencies

6 views (last 30 days)
I have to design a filter to remove the noise that has been added to an audio signal with fs=44100.
The noise exists in only two frequencies and the filter should remove them.
Which type of filter is able to do this?

Accepted Answer

Star Strider
Star Strider on 15 Dec 2018
If you have R2018a or later, use the bandstop (link) function. Cascade two filters, one for each frequency. If you use the second ‘d’ (digital filter object) output, use the filtfilt function with it to filter your signal.
Using kaiserord (link) with fir1 is also an option. You can design the filter to eliminate both frequencies at the same time.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!