fdacoefs.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Filter Coefficients (C Source) generated by the Filter Design and Analysis Tool
  3. * Generated by MATLAB(R) 9.9 and Signal Processing Toolbox 8.5.
  4. * Generated on: 28-Dec-2024 14:46:25
  5. */
  6. /*
  7. * 离散时间 FIR 滤波器(实数)
  8. * ----------------
  9. * 滤波器结构 : 直接型 FIR
  10. * 滤波器长度 : 51
  11. * 稳定 : 是
  12. * 线性相位 : 是 (Type 1)
  13. */
  14. /* General type conversion for MATLAB generated C-code */
  15. //#include "tmwtypes.h"
  16. /*
  17. * Expected path to tmwtypes.h
  18. * D:\Program Files\Polyspace\R2020b\extern\include\tmwtypes.h
  19. */
  20. /*
  21. * Warning - Filter coefficients were truncated to fit specified data type.
  22. * The resulting response may not match generated theoretical response.
  23. * Use the Filter Design & Analysis Tool to design accurate
  24. * single-precision filter coefficients.
  25. */
  26. const int BL = 51;
  27. const float B[51] = {
  28. -0.0009190982091, -0.00271769613,-0.002486952813, 0.003661438357, 0.0136509249,
  29. 0.01735116541, 0.00766530633,-0.006554719061,-0.007696784101, 0.006105459295,
  30. 0.01387391612,0.0003508617228, -0.01690892503,-0.008905642666, 0.01744112931,
  31. 0.02074504457, -0.0122964941, -0.03424086422,-0.001034529647, 0.04779030383,
  32. 0.02736303769, -0.05937951803, -0.08230702579, 0.06718690693, 0.3100151718,
  33. 0.4300478697, 0.3100151718, 0.06718690693, -0.08230702579, -0.05937951803,
  34. 0.02736303769, 0.04779030383,-0.001034529647, -0.03424086422, -0.0122964941,
  35. 0.02074504457, 0.01744112931,-0.008905642666, -0.01690892503,0.0003508617228,
  36. 0.01387391612, 0.006105459295,-0.007696784101,-0.006554719061, 0.00766530633,
  37. 0.01735116541, 0.0136509249, 0.003661438357,-0.002486952813, -0.00271769613,
  38. -0.0009190982091
  39. };