how to filter wav file using butterworth bandpass filter?

i have been asked to design butterworth bandpass filter to eliminate 1kHz noisy sound from noise.wav file. need help for writing the coding for filter. Thank you very much

 Risposta accettata

It seems that you want to design a bandstop or notch filter. See the documentation for Remove the 60 Hz Hum from a Signal (link) and make the appropriate changes to the code for your signal.

2 Commenti

thank you..but can you please help me with this coding part?
d = designfilt('bandstopiir','FilterOrder',2, ... 'HalfPowerFrequency1',59,'HalfPowerFrequency2',61, ... 'DesignMethod','butter','SampleRate',Fs);
it seems i cannot understand which and what to write in the bracket after designfilt.
My pleasure.
I do not know what your sampling frequency is, and I have not seen the Fourier transform of your ‘.wav’ file, so I cannot help you with the code. Please see the documentation for designfilt (link) for details.
It is probably the easiest of the many ways to design filters in the Signal Processing Toolbox.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by