フィルターのクリア

Need help for selectivity of filters based on filter length

3 ビュー (過去 30 日間)
moonman
moonman 2011 年 10 月 17 日
I have written this code for two filter lengths (L)
h770=[];
L=10;
fs=8000;
fb=770;
h770 = (2/L)*cos(2*pi*fb*(0:L-1)/fs);
ww=0:(pi/256):pi;
ff=ww/(2*pi)*fs;
H=freqz(h770,1,ww);
subplot(2,1,1)
plot(ff,abs(H));
title('Magnitude response for L=10 for h770')
grid on;
L=100;
h770 = (2/L)*cos(2*pi*fb*(0:L-1)/fs);
H=freqz(h770,1,ww);
subplot(2,1,2)
plot(ff,abs(H));
title('Magnitude response for L=100 for h770')
grid on;
Now the book asks, Notice the selectivity of filters based on filter length. Think about how this selectivity is used to pass one component while rejecting or attenuating the others.
Kindly explain this to me. what he mean by selectivity

採用された回答

Wayne King
Wayne King 2011 年 10 月 17 日
Selectivity is referring to the width of the passband here. Notice where your filter magnitude goes to zero for L=10 vs. L=100. Look at the difference in the width of the two passbands.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by