【正文】
)。ylabel(39。ω/π39。grid on。subplot(2,1,2)。切比雪夫II型幅頻響應39。幅度(dB)39。)。xlabel(39。plot(w/pi,20*log10(abs(hw)))。 %返回H(z)的分子分母系數(shù)[hw,w]=freqz(b,a)。 %阻帶最小衰減(單位:dB)[N,Wn]=cheb2ord(Wp,Ws,Rp,Rs)。 %歸一化的阻帶截止頻率Rp=。Wp=2*Flp/Fs。 %抽樣頻率20KHzFlp=2100。xlabel(‘ω/π’)。plot(w/pi,abs(hw))。ylabel(‘幅度(dB)’)title(‘切比雪夫I型幅頻響應’)。grid on。subplot(2,1,1)。 %返回最小階數(shù)和截止頻率[b,a]=cheby1(N,Rp,Wn)。 %通帶最大衰減(單位:dB)Rs=30。 %歸一化的通帶截止頻率Ws=2*Fls/Fs。 Fls=8000。代碼3Fs=20000。 xlabel(‘頻率/Hz’)。 plot(f,abs(H))。 ylabel(‘振幅/dB’)。 grid on。plot(f,20*log10(abs(H)))。 %運用雙線性變換法得到數(shù)字濾波器傳遞函數(shù) [H,f]=freqz(bz,az,512,fs)。 %零點極點增益形式轉(zhuǎn)換為傳遞函數(shù)形式 [b,a]=lp2lp(Bap,Aap,Wn)。 %計算模擬濾波器的最小階數(shù) [z,p,k]=ellipap(N,Rp,Rs)。Ws=2/Ts*tan(ws/2)。 Ts=1/fs。 Rp=。 wp=2*pi*2100/fs。 ylabel(‘振幅/H’)。 grid on。subplot(2,1,2)。 %加坐標網(wǎng)格xlabel(‘頻率/Hz’)。plot(W,20*log10(abs(H)))。 %給出傳輸函數(shù)H(Z)[H,W]=freqz(bz,az,512,Fs)。%將低通原型轉(zhuǎn)換為模擬低通[bz,az]=impinvar(bs,as,Fs)。 %設計模擬低通原型的零極點增益參數(shù)[bp,ap]=zp2tf(z,p,k)。%求歸一化頻率[N,Wn]=buttord(W1p,W1s,Rp,Rs,’s’)。 %設計指標W1p=fp/Fs*2。Rs=30。Fs=20000。我所寫論文還有有不足之處,懇請各位老師和學友批評和指正!附錄代碼1fp=2100。本文引用了數(shù)位學者的研究文獻,如果沒有各位學者的研究成果的幫助和啟發(fā),我將很難完成本篇論文的寫作。其嚴肅認真的治學風格給我留下深刻的影響,值得我永遠學習。給我提供了大量數(shù)據(jù)資料和建議,告訴我應該注意的細節(jié)問題,細心的給我指出錯誤。 Matlab21致 謝經(jīng)過一個月最終將這篇論文完成,在寫論文的過程中遇到了無數(shù)的困難和障礙,在指導老師和同學的幫助下均解決了。t exist, can realize the impedance matching simulating the special filter cannot achieve filter function. Digital filter according to its impulse response function and characteristics of the time can be divided into two kinds, namely the infinite impulse response (IIR) digital filter and finite impulse response (FIR digital filters). The order of realizing IIR filter is used, low and high efficiency less storage unit, high precision, and can keep some simulation characteristics of filter, so it is widely used. Matlab software based on matrix putation, the calculation, visualization and program design of organic integration to interactive environment for digital filter, and the research and application of provides an intuitive, efficient and convenient tool. Especially in the Matlab signal processing to all areas of research toolbox personnel can easily for scientific research and engineering application. This paper introduces the concept of digital filter, classification and design requirements. Then using MATLAB language programming to design IIR digital filter. Key design Chebyshev type I and II digital Chebyshev lowpass filter, and introduces optimization design.Keywords: Digital Filter 。Matlab 信號處理工具箱為濾波器設計及分析提供了非常優(yōu)秀的輔助設計工具, 在設計數(shù)字濾波器時, 善于應用Matlab進行輔助設計, 能夠大大提高設計效率。采用Matlab設計濾波器,使原來非常繁瑣復雜的程序設計變成了簡單的函數(shù)調(diào)用,為濾波器的設和實現(xiàn)開辟了廣闊的天地,尤其是Matlab工具箱使各個領域的研究人員可以直觀方便地進行科學研究與工程應用。雙線性變換不會出現(xiàn)混疊失真,但會產(chǎn)生頻率的畸變,使數(shù)字濾波器的頻率響應偏移模擬濾波器的頻率響應。 在設計中,脈沖響應不變法中相位響應有嚴格的線性,不存在穩(wěn)定性的問題,設計簡單。 4 結(jié)論濾波是信號處理的基礎,濾波運算時心里好處理中的基本運算,濾波器的設計也就相應成為數(shù)字信號處理的最基本問題之一。橢圓濾波器的