fir滤波器应用matlab,fir滤波器应用.ppt
fir濾波器應(yīng)用
電子與通信工程 許永全 FIR濾波器應(yīng)用 內(nèi)容 數(shù)字濾波器概述 FIR濾波器基本介紹 FIR濾波器在matlab及FPGA中的調(diào)用程序 FIR濾波器在無線信號處理的一個應(yīng)用 數(shù)字濾波器概述 常用的數(shù)字濾波器主要有兩種: 無限長單位沖激響應(yīng) IIR 濾波器 有限長單位沖激響應(yīng) FIR 濾波器 數(shù)字濾波器概述 寬帶系統(tǒng)中濾波器的應(yīng)用結(jié)構(gòu) 數(shù)字濾波器概述 FIR濾波器基本介紹 有限長單位沖激響應(yīng)濾波器,是數(shù)字信號處理系統(tǒng)中最基本的元件,它可以在保證任意幅頻特性的同時具有嚴格的線性相頻特性,同時其單位抽樣響應(yīng)是有限長的,因而濾波器是穩(wěn)定的系統(tǒng)。 FIR濾波器基本介紹 FIR型濾波器的系統(tǒng)函數(shù)為: FIR濾波器在matlab及FPGA中的調(diào)用程序 Fir濾波器最常用的是窗函數(shù)設(shè)計法(Window)、等波紋設(shè)計法(Equiripple)和最小二乘法(Least-Squares)等。其中窗函數(shù)設(shè)計法在學(xué)校課堂中是重點講解的, 著名的窗函數(shù)有矩形窗、三角窗、hannning、hamming、blackman、kaiser窗等。 Matlab 方法1 Matlab 方法1 使用 fdatool工具,產(chǎn)生n階濾波器系數(shù)。 Matlab 方法2 使用函數(shù)產(chǎn)生濾波器系數(shù) %samp = 100000; fcuts = [1500 6500]; mags = [1 0]; devs = [0.06 0.01]; [n,Wn,beta,ftype] = kaiserord(fcuts,mags,devs,fs); hh = fir1(n,Wn,ftype,kaiser(n+1,beta),'noscale'); freqz(hh) Matlab方法 取得系數(shù)后通過與信號的卷積,即可完成對信號的濾波處理 ffir_x=conv(f_x,h); FPGA使用濾波器系數(shù) //A=[ 46, 34, 7, -52, -154, -287, -406, -439, -300, 83, 736, 1624, 2641, 3632, 4421, 4858, //4858, 4421, 3632, 2641, 1624, 736, 83, -300, -439, -406, -287, -154, -52, 7, 34, 46]; wire [15:0] coe1=46; wire [15:0] coe2=34; wire [15:0] coe3=7; wire [15:0] coe4=-52; wire [15:0] coe5=-154; wire [15:0] coe6=-287; wire [15:0] coe7=-406; wire [15:0] coe8=-439; wire [15:0] coe9=-300; wire [15:0] coe10=83; wire [15:0] coe11=736; wire [15:0] coe12=1624; wire [15:0] coe13=2641; wire [15:0] coe14=3632; wire [15:0] coe15=4421; wire [15:0] coe16=4858; FPGA使用濾波器系數(shù) 做乘法運算 wire [31:0] m_result[32:0]; lpm_mult0 lpm_m1(.dataa(datainI),.datab(coe1),.result(m_result[0])); lpm_mult0 lpm_m2(.dataa(datainI),.datab(coe2),.result(m_result[1])); lpm_mult0 lpm_m3(.dataa(datainI),.datab(coe3),.result(m_result[2])); lpm_mult0 lpm_m4(.dataa(datainI),.datab(coe4),.result(m_result[3])); lpm_mult0 lpm_m5(.dataa(datainI),.datab(coe5),.result(m_result[4])); lpm_mult0 lpm_m6(.dataa(datainI),.datab(coe6),.result(m_result[5])); lpm_mult0 lpm_m7(.dataa(datainI),.datab(coe7),.result(m_result[6])); lpm_mul
總結(jié)
以上是生活随笔為你收集整理的fir滤波器应用matlab,fir滤波器应用.ppt的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php 自动列,设置自动调整列phpEx
- 下一篇: matlab 除噪点,MATLAB应用在