Matlab FIR滤波器(Matlab FIR Filter)
我必须分析有限脉冲响应(FIR)滤波器的系数,以获得最小的字长,这样就不会有内部溢出影响输出。
-0.0041 0.0077 0.0893 0.3276 0.0893 0.0077 -0.0041
我试过了
f = fdesign.bandpass(0.0041,0.0077,0.0893,0.3276, 0.0893, 0.0077,0.0041);
Hd = design(f, 'equiripple');
fvtool(Hd)
我收到以下错误:
频率规格必须介于0和1之间。
然后我计算了比例因子并乘以所有系数
coefficients h[0] + h[1] + h[2] +…+ h[M] = S
Log base 2 (S )+ 1
但我仍然得到同样的错误:
频率规格必须介于0和1之间。
I have to analyse the coefficients for a Finite Impulse Response (FIR) filter for minimal word lengths so there should be no internal overflows that impact to the output.
-0.0041 0.0077 0.0893 0.3276 0.0893 0.0077 -0.0041
I have tried
f = fdesign.bandpass(0.0041,0.0077,0.0893,0.3276, 0.0893, 0.0077,0.0041);
Hd = design(f, 'equiripple&#