fir1
Window-based finite impulse response filter design
基于窗口的有限脉冲响应滤波器设计
b = fir1(n,Wn)
b = fir1(n,Wn,'ftype')
b = fir1(n,Wn,window)
b = fir1(n,Wn,'ftype',window)
b = fir1(...,'normalization')
fir1 implements the classical method of windowed linear-phase FIR digital filter design [1]. It designs filters in standard lowpass, highpass, bandpass, and bandstop configurations. By default the filter is normalized so that the magnitude response of the filter at the center frequency of the passband is 0 dB.
fir1实现了带窗线性相位FIR数字滤波器设计的经典方法[1]。它设计了标准低通、高通、带通和带阻滤波器。默认情况下,将滤波器归一化,使通带中心频率处滤波器的幅值响应为0 dB。对于具有任意频率响应的窗口过滤器使用fir2。
b = fir1(n,Wn) returns row vector b containing the n+1 coefficients of an order n lowpass FIR filter. This is a Hamming-window based, linear-phase filter with normalized cutoff frequency Wn. The output filter coefficients, b, are ordered in