如何能得知FIR的系数呢
假如是一些没有特殊要求的平滑(低通)滤波的场合,可以简单地采用平均值滤波的方法,所谓平均值滤波,即各个系数相等
设平均值滤波器的阶数是N,则可以取bn=1/N
实际使用时,只要每个系数相等即可,不必一定等于1/N
假如面对一些对通频带、截止频率、阶数有特殊要求的场合,有两种方法,一种是根据系数计算步骤(可参考 Fundamentals of Digital Signal Processing, Joyce Van de Vegte),二是用Matlab的Fdatool工具进行滤波器设计
选择第二种方法明显的有优越性
关于fdatool的使用,Matlab有提供详细的指导,在 Matlab命令行输入 help fdatool,再点入 doc fdatool即可查看
>> help fdatool FDATOOL Filter Design & Analysis Tool
FDATOOL launches the Filter Design & Analysis Tool (FDATool)
FDATool is a Graphical User Interface (GUI) that allows you to design or import, and analyze digital FIR and IIR filters
If the Filter Design Toolbox is installed, FDATool seamlessly integrates advanced filter design methods and the ability to quantize filters
See also FVTOOL, SPTOOL
>> doc fdatool Toolbox下的 Filter Design 图1 Fda