You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gain offset using control.matlab.c2d using method='matched' ? #950
Hi John great to hear from you and happy holidays. Glad to see you are using or at the very least evaluating the library.
The matched c2d is code I have never used before and it doesn’t look like we have a unit test for it, so there is a decent chance it is just a bug. Thanks for the report!
One q - when you refer to gain, do you mean the DC gain of the two systems?
Activity
sawyerbfuller commentedon Dec 25, 2023
Hi John great to hear from you and happy holidays. Glad to see you are using or at the very least evaluating the library.
The matched c2d is code I have never used before and it doesn’t look like we have a unit test for it, so there is a decent chance it is just a bug. Thanks for the report!
One q - when you refer to gain, do you mean the DC gain of the two systems?
murrayrm commentedon Dec 26, 2023
I did a quick check and I agree there is something wrong in the matched transformation:
This produces the following plot:

A couple of things to fix:
fix bug in matched transformation + address other issues in python-co…
fix bug in matched transformation + address other issues in python-co…
murrayrm commentedon Dec 26, 2023
Fixed in #951. New plot:
Merge pull request #951 from murrayrm/matched_bug-26Dec2023
Fix matched c2d NaN for a pole or zero at the origin