Title: Different impulse responses for zpk vs tf · Issue #1062 · python-control/python-control · GitHub
Open Graph Title: Different impulse responses for zpk vs tf · Issue #1062 · python-control/python-control
X Title: Different impulse responses for zpk vs tf · Issue #1062 · python-control/python-control
Description: Discussed in #1061 Originally posted by MEnzmann November 19, 2024 Hi all! I am little puzzled about the declaration of transfer-functions with control.zpk. The step-responses / impulse-responses of a transfer-function declared with cont...
Open Graph Description: Discussed in #1061 Originally posted by MEnzmann November 19, 2024 Hi all! I am little puzzled about the declaration of transfer-functions with control.zpk. The step-responses / impulse-responses o...
X Description: Discussed in #1061 Originally posted by MEnzmann November 19, 2024 Hi all! I am little puzzled about the declaration of transfer-functions with control.zpk. The step-responses / impulse-responses o...
Opengraph URL: https://github.com/python-control/python-control/issues/1062
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Different impulse responses for zpk vs tf","articleBody":"### Discussed in https://github.com/python-control/python-control/discussions/1061\r\n\r\n\u003cdiv type='discussions-op-text'\u003e\r\n\r\n\u003csup\u003eOriginally posted by **MEnzmann** November 19, 2024\u003c/sup\u003e\r\nHi all! \r\n\r\nI am little puzzled about the declaration of transfer-functions with control.zpk. The step-responses / impulse-responses of a transfer-function declared with control.zpk seem to unstable, although the poles are in the left-half plane and a bode plot does not show unstable poles. Am I missing something in the following MME?\r\n\r\nHelp would be appreciated! TIA!\r\n\r\n_import control as ct\r\nimport control.matlab as ml\r\nimport matplotlib.pyplot as pl\r\n#### Declare stable system as zpk \r\nGzp = ct.zpk([-5],[-1,-10], gain=4)\r\nprint(Gzp)\r\n#### Declare same system as tf\r\nGtf = ct.tf([4,20], [1,11, 10])\r\nprint(Gtf)\r\n#### Both systems share the same poles and zeros, the difference of both systems is 0.\r\n#### Yet: the Gzp system is instable in simulations while Gtf is stable (as expected)\r\n[Tzp, Yzp] = ct.impulse_response(Gzp)\r\npl.plot(Tzp, Yzp)\r\npl.show()\r\n[Ttf, Ytf] = ct.impulse_response(Gtf)\r\npl.plot(Ttf, Ytf)\r\npl.show()__\u003c/div\u003e","author":{"url":"https://github.com/murrayrm","@type":"Person","name":"murrayrm"},"datePublished":"2024-11-20T06:23:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1062/python-control/issues/1062"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:153022c1-d6a1-dfe7-745f-c931ae224c5d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B596:25FA45:123FB04:1A1AC93:697A3805 |
| html-safe-nonce | f6a90c39cbb239b935c46958a8cb57e8c90012ecfa6cf72d3f6d0e4b451ff59e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTk2OjI1RkE0NToxMjNGQjA0OjFBMUFDOTM6Njk3QTM4MDUiLCJ2aXNpdG9yX2lkIjoiMzc1NDc4NDQ1MDU4ODMyNTg5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6c9553920b28650f0d8415afdae1c494b8812a2bd51070d506adaee0226f07ca |
| hovercard-subject-tag | issue:2674581070 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-control/python-control/1062/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b65dfacb21b3581914ba8ad8b351ce4b5b7e71c7ff91ef6a40c23942df94ab07/python-control/python-control/issues/1062 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b65dfacb21b3581914ba8ad8b351ce4b5b7e71c7ff91ef6a40c23942df94ab07/python-control/python-control/issues/1062 |
| og:image:alt | Discussed in #1061 Originally posted by MEnzmann November 19, 2024 Hi all! I am little puzzled about the declaration of transfer-functions with control.zpk. The step-responses / impulse-responses o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | murrayrm |
| hostname | github.com |
| expected-hostname | github.com |
| None | af6de804ceb83ad30bb9b348cdeaccaa30cdcb566762d5e74e21e2bad88885d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-control/python-control git https://github.com/python-control/python-control.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 22791752 |
| octolytics-dimension-repository_nwo | python-control/python-control |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22791752 |
| octolytics-dimension-repository_network_root_nwo | python-control/python-control |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d980605f0959039ddebcbcf522b072508302977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width