Skip to main content
2 of 5
deleted 152 characters in body
Dan Boschen
  • 55k
  • 2
  • 59
  • 143

In the Matlab firpm command, the first parameter N is the number of taps in the filter, while in the Python scipy.signal remez command, the first parameter N is the filter order or one less than the number of taps. Confirming this, if you increase N by one in Matlab you will get the same (bad) result as this particular solution is not converging with an odd number of taps. Or similarly, if you increase N by one in the Python example you will get the same (good) result.

Dan Boschen
  • 55k
  • 2
  • 59
  • 143