/* * Filter Coefficients (C Source) generated by the Filter Design and Analysis Tool * Generated by MATLAB(R) 9.12 and Signal Processing Toolbox 9.0. * Generated on: 03-Jul-2024 23:57:04 */ /* * 离散时间 FIR 滤波器(实数) * ---------------- * 滤波器结构 : 直接型 FIR * 滤波器长度 : 46 * 稳定 : 是 * 线性相位 : 是 (Type 2) */ /* General type conversion for MATLAB generated C-code */ //#include "tmwtypes.h" /* * Expected path to tmwtypes.h * C:\Program Files\MATLAB\R2022a\extern\include\tmwtypes.h */ /* * Warning - Filter coefficients were truncated to fit specified data type. * The resulting response may not match generated theoretical response. * Use the Filter Design & Analysis Tool to design accurate * single-precision filter coefficients. */ //const int BL = 46; //const float32_t B[46] = { // -0.001119464869,-0.000287396746,-8.360351057e-05,0.0003625267709, 0.001120736357, // 0.002262232359, 0.003853877541, 0.005952425767, 0.008596911095, 0.01180436555, // 0.01556421723, 0.01983707026, 0.02455105446, 0.02960319445, 0.03486000001, // 0.04016984627, 0.04535837471, 0.05024559051, 0.05465414748, 0.0584131442, // 0.06137540936, 0.06342063844, 0.06446501613, 0.06446501613, 0.06342063844, // 0.06137540936, 0.0584131442, 0.05465414748, 0.05024559051, 0.04535837471, // 0.04016984627, 0.03486000001, 0.02960319445, 0.02455105446, 0.01983707026, // 0.01556421723, 0.01180436555, 0.008596911095, 0.005952425767, 0.003853877541, // 0.002262232359, 0.001120736357,0.0003625267709,-8.360351057e-05,-0.000287396746, // -0.001119464869 //};