How to change order for different filters?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
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?
[y2,fs]=audioread('room.mp3');
y_h2=highpass(y2,1000,fs);
n=filtord(y_h2);
- 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?
Thanks.
0 件のコメント
採用された回答
Star Strider
2021 年 7 月 7 日
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.
Example —
s = rand(1, 5000);
Fs = 1000;
fpass = 50;
[sfilt,df] = lowpass(s, fpass, Fs, 'ImpulseResponse','iir');
df
.
12 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Digital Filter Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!