Amaliy qism:
FIR filtrini Matlab
plot(x),grid
Ushbu yozib olingan funksiyani chaqirib ishlatamiz. Buning uchun avval y
ni qiymatlarini e’lon qilib olamiz.
>> y = [.2 .3 .4 .5 .1 .9 .7 .3]
y = 0.2000 0.3000 0.4000 0.5000 0.1000 0.9000 0.7000 0.3000
>> Sevara(8, 3, y)
>> Sevara(8, 4, y)
8 ta qiymatdan iborat 3 qadamdan iborat FIR filtrini amalga oshirganimizdan
so`ng quyidagicha grafik hosil bo`ladi.
Endi 16 talik qiymat uchun 3 va 4 qadamdan iborat FIR filtrini amalga oshiramiz.
>> y = [.1 .2 .3 .4 .5 .6 .7 .8 .1 .3 .9 .7 .5 .4 .3 .8]
y = 0.1000 0.2000 0.3000 0.4000 0.5000 0.6000 0.7000 0.8000
0.1000 0.3000 0.9000 0.7000 0.5000 0.4000 0.3000 0.8000
>> Visola (16, 3, y)
>> Visola (16, 4, y)
4 qadamdan iborat FIR filtri
1.
Nutqli signallarni filtrlash nima?
2.
Nutqli signallarni filtrlashni qanday qurilmalarini bilasiz?
3.
Nutqli signallarni filtrlash qurilmalarini qanday algoritmi mavjud?
4.
FIR filtri nima?
Topshiriqlar:
1. FIR filtrini Matlab muhitida amalga oshirish.
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);
>> bb=firls(n,f,a);
>> fvtool(b,1,bb,1)
|