How to change order for different filters?
5 views (last 30 days)
I have 2 questions:
- What order filter does y = highpass(x,fpass,fs) and y = lowpass(x,fpass,fs) use? How can I check the filter order what they use? I was using "filtord()" in this manner to find out the filter order, is this correct way?
- I have an audio file and I am doing signal processing over that audio file such a passing it though various filters. But I wanted to change order of those filters at my own will. How can I do that?
Star Strider on 7 Jul 2021
Those functions have a second output, the digitalFilter object. Return that and all the information you want about the type of filter and the order will be available.
s = rand(1, 5000);
Fs = 1000;
fpass = 50;
[sfilt,df] = lowpass(s, fpass, Fs, 'ImpulseResponse','iir');