如何能得知 FIR 的系数呢?假如是一些没有特殊要求的平滑(低通)滤波
的场合,可以简单地采用平均值滤波的方法,所谓平均值滤波,即各个系
数相等。设平均值滤波器的阶数是 N,则可以取 b =1/N。实际使用时,只
n
要每个系数相等即可,不必一定等于 1/N。假如面对一些对通频带、截止
频率、阶数有特殊要求的场合,有两种方法,一种是根据系数计算步骤(可
参考 Fundamentals of Digital Signal Processing, Joyce Van de Vegte),
二是用 Matlab 的 Fdatool 工具进行滤波器设计。选择第二种方法明显的
有优越性。关于 fdatool 的使用,Matlab 有提供详细的指导,在 Matlab
命令行输入 help fdatool,再点入 doc fdatool 即可查看。
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.