Title: Using input_output_response(...), Simple System Gives Erroneous Output · Issue #890 · python-control/python-control · GitHub
Open Graph Title: Using input_output_response(...), Simple System Gives Erroneous Output · Issue #890 · python-control/python-control
X Title: Using input_output_response(...), Simple System Gives Erroneous Output · Issue #890 · python-control/python-control
Description: This system should not have the bump in the output you see about halfway through the simulation. import matplotlib.pyplot as plt import numpy as np import control as ctrl R = 22e3 C = 470e-6 circuit = ctrl.ss(-1/(R*C), 1/(R*C), 1, 0) t, ...
Open Graph Description: This system should not have the bump in the output you see about halfway through the simulation. import matplotlib.pyplot as plt import numpy as np import control as ctrl R = 22e3 C = 470e-6 circui...
X Description: This system should not have the bump in the output you see about halfway through the simulation. import matplotlib.pyplot as plt import numpy as np import control as ctrl R = 22e3 C = 470e-6 circui...
Opengraph URL: https://github.com/python-control/python-control/issues/890
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using input_output_response(...), Simple System Gives Erroneous Output","articleBody":"This system should not have the bump in the output you see about halfway through the simulation.\r\n```\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nimport control as ctrl\r\n\r\nR = 22e3\r\nC = 470e-6\r\n\r\ncircuit = ctrl.ss(-1/(R*C), 1/(R*C), 1, 0)\r\nt, resp = ctrl.step_response(circuit)\r\nplt.plot(t, resp)\r\nplt.title('Step Response of the RC Circuit')\r\nplt.grid()\r\nprint(\"The eigenvalue is: \",-1/(R*C))\r\nprint(\"numpy gives the eigenvalue, and eigen vector respectively as: \")\r\nnp.linalg.eig(circuit.A)\r\nt = np.arange(0, 120, 0.01)\r\nu = 3.3*148/256-3.3*40/256*np.heaviside(t-60,1)\r\nplt.plot(t,u)\r\nx0 = 3.3*128/256\r\nt, vc = ctrl.input_output_response(circuit, t, u, x0)\r\nplt.plot(t,vc)\r\nplt.grid()\r\nplt.title(\"Response of RC Circuit\")\r\nplt.legend([\"u\",\"$v_c$\"])\r\nplt.xlabel(\"time (seconds)\")\r\nplt.ylabel(\"Voltage (Volts)\")\r\nplt.show()\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/frohro","@type":"Person","name":"frohro"},"datePublished":"2023-05-05T10:04:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/890/python-control/issues/890"}
| 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:131e5bb0-9d63-e733-f65d-6ac1f5469ca2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 849E:275B2E:2B99409:3A67CE1:697AD925 |
| html-safe-nonce | d6e6e0f330486346336b5611993f896bc7b1320ceb5ce460afaefad13f9025f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDlFOjI3NUIyRToyQjk5NDA5OjNBNjdDRTE6Njk3QUQ5MjUiLCJ2aXNpdG9yX2lkIjoiNzMyMjAwODk3ODk2NTg0NjMxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 54752e30aa6ce09612152b7f88eed19790e3d9068e4f329bbe59948fd0887b31 |
| hovercard-subject-tag | issue:1697349944 |
| 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/890/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02a9268f9ecd505f69707e06419889f26d710f2bb41aea80bb322e15bc2c49a4/python-control/python-control/issues/890 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02a9268f9ecd505f69707e06419889f26d710f2bb41aea80bb322e15bc2c49a4/python-control/python-control/issues/890 |
| og:image:alt | This system should not have the bump in the output you see about halfway through the simulation. import matplotlib.pyplot as plt import numpy as np import control as ctrl R = 22e3 C = 470e-6 circui... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | frohro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4af1ba0e68200258a80b0c5ab34f12a78bf48372a377a11e14eb668863c03b3a |
| 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 | 353b231ffaec2de44db15b2e82887804ede7c21e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width