Title: non-intuitive Time-Domain Simulation functions behavior · Issue #239 · python-control/python-control · GitHub
Open Graph Title: non-intuitive Time-Domain Simulation functions behavior · Issue #239 · python-control/python-control
X Title: non-intuitive Time-Domain Simulation functions behavior · Issue #239 · python-control/python-control
Description: Hi, I notice that the simulation functions: step_response, impulse_response, for discrete time systems is not very intuitive, and is also inconsistent with matlab's behavior (I sort of have the habit of checking matlab documentation for ...
Open Graph Description: Hi, I notice that the simulation functions: step_response, impulse_response, for discrete time systems is not very intuitive, and is also inconsistent with matlab's behavior (I sort of have the hab...
X Description: Hi, I notice that the simulation functions: step_response, impulse_response, for discrete time systems is not very intuitive, and is also inconsistent with matlab's behavior (I sort of have the...
Opengraph URL: https://github.com/python-control/python-control/issues/239
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"non-intuitive Time-Domain Simulation functions behavior","articleBody":"Hi, I notice that the simulation functions: `step_response`, `impulse_response`, for discrete time systems is not very intuitive, and is also inconsistent with matlab's behavior (I sort of have the habit of checking matlab documentation for a python-control function if there are suprises). \r\n\r\nConsider this snippet\r\n```python\r\nimport control as co\r\nimport numpy as np\r\nA1 = co.tf([1], [1, 6, 5])\r\nA1 = co.c2d(A1, 0.5)\r\nT, y = co.step_response(A1, np.arange(0, 5, 0.2))\r\n```\r\n\r\nwe would expect `T` to be the time instances that correspond to values in `y` (matlab behavior), but it turns out not the case. I got `T.shape = (25,)` while `y.shape=(1, 10)`. The same behavior can be observed for other time-domain functions for discrete-time systems (continuous-time systems are alright).\r\n","author":{"url":"https://github.com/hungpham2511","@type":"Person","name":"hungpham2511"},"datePublished":"2018-10-25T03:41:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/239/python-control/issues/239"}
| 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:cc3ce1e6-7520-7f59-546b-1b23a2f2e5c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF50:34A19B:1073F2B:171B394:697B881D |
| html-safe-nonce | 76cb808c79e727b70779387eab869c0e1bcbc34f957c2b1154ff2018ec2bf27a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjUwOjM0QTE5QjoxMDczRjJCOjE3MUIzOTQ6Njk3Qjg4MUQiLCJ2aXNpdG9yX2lkIjoiNzU2MjcxNzMyODY5Mzc1Nzk4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | daaa2267b3f102033492a650b0c132b30489c82920ee1e359d9fdbaa914f7ba2 |
| hovercard-subject-tag | issue:373760960 |
| 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/239/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e736129361c8025ee65810f2324cdde3b53d2a23e79957a7a8047930dcff31a2/python-control/python-control/issues/239 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e736129361c8025ee65810f2324cdde3b53d2a23e79957a7a8047930dcff31a2/python-control/python-control/issues/239 |
| og:image:alt | Hi, I notice that the simulation functions: step_response, impulse_response, for discrete time systems is not very intuitive, and is also inconsistent with matlab's behavior (I sort of have the hab... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hungpham2511 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26ef504c9f5eb2ac26b53c0437f934bbe4c0464979d7386917bd32d9fe70fc7a |
| 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 | 110a229999a4571d492aa4cedea461d88a988040 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width