Find the order of a Butter-worth low pass filter in Matlab

4 次查看(过去 30 天)
I have a Butter-worth low pass filter that I need to construct with the following specifications down below. The order of the filter is N = 11. I don't know how to construct such a filteri n Matlab. Can someone please help?
Fs = 44.1 Khz,
fpass = 1000 , αp = 1 dB , fstop = 2000 , αs = 60 dB
We are given an audio file- ("twoSounds.wav") to call in a MATlab f(x)
Load the file into the Matlab and filter it out using your constructed filter. Write your observation.

采纳的回答

Star Strider
Star Strider 2019-11-2
Start with the butter function and follow the links in and at the end of that documentation page.
Specifically note the discussion in Limitations, and use this implementattion of your filter (copied from the documentation, with slight editing):
% Zero-Pole-Gain design
[z,p,k] = butter(n,Wn,ftype);
[sos,g] = zp2sos(z,p,k);
Use the filtfilt function to do the actual filtering.

更多回答(0 个)

产品

Community Treasure Hunt

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

Start Hunting!

Translated by