coeff.m
Upload User: xxy784
Upload Date: 2015-01-28
Package Size: 726k
Code Size: 5k
Development Platform:

Matlab

  1. %1000Hz Butterworth lowpass filter
  2. global butt_1000ord;    %order
  3. global butt_1000num;    %numerator coefficient,descend order
  4. global butt_1000den;    %denumerator coefficient,descend order
  5. %five Butterworth bandpass filters 
  6. global butt_bp_ord;     %order
  7. global butt_bp_num;     %numerator coefficient ,descend order
  8. global butt_bp_den;     %denumerator coefficient ,descend order
  9. %smoothing filter
  10. global smooth_ord;      %order
  11. global smooth_num;      %numerator coefficient,descend order
  12. global smooth_den;      %denumerator coefficient,descend order
  13. %direct current remove filter
  14. global dcr_ord;         %order
  15. global dcr_num;         %numerator coefficient,,descend order
  16. global dcr_den;         %denumerator coefficient,,descend order
  17. %5 FIR filters
  18. global fir_ord;         %order
  19. global melp_firs;       %coefficient
  20. %Butterworth lowpass filter
  21. butt_1000ord=6;
  22. butt_1000num=[0.00105165,0.00630988,0.01577470,0.02103294,0.01577470,0.00630988,0.00105165];
  23. butt_1000den=[1.00000000,-2.97852993,4.13608100,-3.25976428,1.51727884,-0.39111723,0.04335699];
  24. %Butterworth bandpass filters
  25. %0~500,500~1000,1000~2000,2000~3000,3000~4000
  26. butt_bp_ord=6;
  27. butt_bp_num=[0.00002883,0.00017296,0.00043239,0.00057652,0.00043239,0.00017296,0.00002883;...
  28.     0.00530041,0.00000000,-0.01590123,0.00000000,0.01590123,0.00000000,-0.00530041;...
  29.     0.03168934,0.00000000,-0.09506803,-0.00000000,0.09506803,-0.00000000,-0.03168934;...
  30.     0.03168934,0.00000000,-0.09506803,0.00000000,0.09506803,0.00000000,-0.03168934;...
  31.     0.00105165,-0.00630988,0.01577470,-0.02103294,0.01577470,-0.00630988,0.00105165];
  32. butt_bp_den=[1.00000000,-4.48456301,8.52900508,-8.77910797,5.14764268,-1.62771478,0.21658286;...
  33.     1.00000000,-4.42459751,8.79771496,-9.95335557,6.75320305,-2.60749972,0.45354593;...
  34.     1.00000000,-1.84699031,2.63060194,-2.21638838,1.57491237,-0.62291281,0.19782519;...
  35.     1.00000000,1.84699031,2.63060194,2.21638838,1.57491237,0.62291281,0.19782519;...
  36.     1.00000000,2.97852993,4.13608100,3.25976428,1.51727884,0.39111723,0.04335699];
  37. %smooth filter for fullwave rectifier
  38. smooth_ord=2;
  39. smooth_num=[1,-1,0];
  40. smooth_den=[1,-1.9266,0.9409];
  41. %DC remove filter
  42. dcr_ord=4;
  43. dcr_num=[0.9269,-3.7056,5.5574,-3.7056,0.9269];
  44. dcr_den=[1.00000000,-3.84610723,5.55209760,-3.56516069,0.85918839];
  45. %This appendix lists the coefficients of the five bandpass filters used in the decoder.
  46. %0 - 500Hz   500 - 1000Hz   1000 - 2000Hz   2000 - 3000Hz   3000 - 4000Hz 0~1000Hz
  47. fir_ord=31;
  48. melp_firs=[...
  49.       -0.00302890,-0.00249420,-0.00231491,0.00231491,0.00554149;...
  50.       -0.00701117,-0.00282091,0.00990113,0.00990113,-0.00981750;...
  51.       -0.01130619,0.00257679,0.02086129,-0.02086129,0.00856805;...
  52.       -0.01494082,0.01451271,-0.00000000,0.00000000,-0.00000000;...
  53.       -0.01672586,0.02868120,-0.03086123,0.03086123,-0.01267517;...
  54.       -0.01544189,0.03621179,-0.02180695,-0.02180695,0.02162277;...
  55.       -0.01006619,0.02784469,0.00769333,-0.00769333,-0.01841647;...
  56.       0.00000000,0.00000000,-0.00000000,-0.00000000,0.00000000;...
  57.       0.01474923,-0.04079870,-0.01127245,0.01127245,0.02698425;...
  58.       0.03347158,-0.07849207,0.04726837,0.04726837,-0.04686914;...
  59.       0.05477206,-0.09392213,0.10106105,-0.10106105,0.04150730;...
  60.       0.07670890,-0.07451087,-0.00000000,0.00000000,-0.00000000;...
  61.       0.09703726,-0.02211575,-0.17904543,0.17904543,-0.07353666;...
  62.       0.11352143,0.04567473,-0.16031428,-0.16031428,0.15896026;...
  63.       0.12426379,0.10232715,0.09497157,-0.09497157,-0.22734513;...
  64.       0.12799355,0.12432599,0.25562154,0.25562154,0.25346255;...
  65.       0.12426379,0.10232715,0.09497157,-0.09497157,-0.22734513;...
  66.       0.11352143,0.04567473,-0.16031428,-0.16031428,0.15896026;...
  67.       0.09703726,-0.02211575,-0.17904543,0.17904543,-0.07353666;...
  68.       0.07670890,-0.07451087,-0.00000000,0.00000000,-0.00000000;...
  69.       0.05477206,-0.09392213,0.10106105,-0.10106105,0.04150730;...
  70.       0.03347158,-0.07849207,0.04726837,0.04726837,-0.04686914;...
  71.       0.01474923,-0.04079870,-0.01127245,0.01127245,0.02698425;...
  72.       0.00000000,-0.00000000,-0.00000000,-0.00000000,0.00000000;...
  73.       -0.01006619,0.02784469,0.00769333,-0.00769333,-0.01841647;...
  74.       -0.01544189,0.03621179,-0.02180695,-0.02180695,0.02162277;...
  75.       -0.01672586,0.02868120,-0.03086123,0.03086123,-0.01267517;...
  76.       -0.01494082,0.01451271,-0.00000000,0.00000000,-0.00000000;...
  77.       -0.01130619,0.00257679,0.02086129,-0.02086129,0.00856805;...
  78.       -0.00701117,-0.00282091,0.00990113,0.00990113,-0.00981750;...
  79.       -0.00302890,-0.00249420,-0.00231491,0.00231491,0.00554149];