Skip to content

fix control.matlab.lsim bug for discrete time system #765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 25, 2022

Conversation

murrayrm
Copy link
Member

@murrayrm murrayrm commented Aug 25, 2022

This PR fixes issue #764. There was a dimension check in forced_response for discrete time systems that occurred before processing of the transpose parameter. Removing the dimension check (which gets done later, after transpose processing) fixes the bug. Add a unit test to catch the error and also turned on some tests that were @slycotonly but that didn't rely on slycot.

@murrayrm murrayrm linked an issue Aug 25, 2022 that may be closed by this pull request
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 94.737% when pulling 6e3113a on murrayrm:matlab.lsim-24Aug2022 into d4c1f14 on python-control:main.

@bnavigator
Copy link
Contributor

LGTM, thanks!

@bnavigator bnavigator merged commit 59aeceb into python-control:main Aug 25, 2022
@murrayrm murrayrm added this to the 0.9.3 milestone Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

control.matlab.lsim does not work for systems of order > 1
3 participants