2. FIR filtrini funksiya orqali bajaring.
3. FIR filtrini grafikda bajaring.
Masalaning qo`yilishi:
High
Pass Filtr
. Avvalgi laboratoriya ishlaridan olingan
natijalarga asoslanib High
Pass Filtr da ishlash va natija olish.
Masala:
b=0.4*sinc(0.4*(-25:25))
0.4*sinc(0.4*(-25:25))
>> fvtool(b,1)
>> b=0.4*sinc(0.4*(-25:25));
>> b=b.*hamming(51)';
>> fvtool(b,1)
>> n=50;
>> f=[0 .4 .5 1];
>> m=[1 1 0 0];
>> b=fir2(n,f,m);
>> bb=firls(n,f,a);
>> n=20;
>> f=[0 0.4 0.5 1];
>> a=[1 1 0 0];
>> b=firpm(n,f,a);