資源簡介
采用窗函數設計法,用Matlab代碼實現數字濾波器的設計,可選擇各種類型的濾波器與各種窗函數相組合。
代碼片段和文件信息
%?script?file:?fir_filter.m
%
%?Purpose:
%???Design?an?FIR?filter?using??window?function
%?
%?Record?of?revisions
%?????Date????????Programmer????????Description?of?change
%????======???????==========????????=====================
%???04/22/2010????zhangyp???????????Origianl?code
%
%?Define?variables
%???wc????????--?wc?is?cutoff?frequency.
%???N?????????--?The?finite?length
%???h?????????--?The?response?array
%???h1????????--?Respone?array?before?add?window
%???iijj?????--?Loop?index
%???w_index???--?Window?index
%???w?????????--?Window?function
%???f_index???--?Filter?kind?index
%???alpha?????--?alpha=(N-1)/2
%???wlwh?????--?parameter?of?bandpass?and?band-reject
%???hw????????--?FFT?of?h
%???hw_shift??--?Shift?of?hw?512?point
%???hw_shift1?--?Shift?of?hw?256?point
- 上一篇:進銷存管理系統Access
- 下一篇:SBL—FM算法代碼
評論
共有 條評論