fix control.matlab.lsim bug for discrete time system by murrayrm · Pull Request #765 · python-control/python-control

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@murrayrm

Copy link Copy Markdown

Member

@murrayrm murrayrm commented

Aug 25, 2022

edited

Loading

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 Copy Markdown

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 Copy Markdown

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

0.9.3

Development

Successfully merging this pull request may close these issues.

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

3 participants

@murrayrm @coveralls @bnavigator