The easiest approach is to call
This will give a filter similar to the one created in the Matlab code. If your goal is to get functionally equivalent results, this should provide a useful filter.
However, if your goal is that the python code provides exactly the same results, then you will have to search under the hood of the design call (in Matlab); From my quick check, there is no trivial analysis through Matlab calls to determine exactly what it does, i.e. What design method is used, etc., and how to match this with the corresponding scipy calls. If you really need compatibility, and you only need to do this for a limited number of filters, you could manually look at the Hd.Numerator field - this array of numbers directly matches the h variable in the above python code. Therefore, if you copy these numbers into an array manually, you will get results equivalent to a digit.
Dave
source share