Title: control.matlab.markov does not work · Issue #395 · python-control/python-control · GitHub
Open Graph Title: control.matlab.markov does not work · Issue #395 · python-control/python-control
X Title: control.matlab.markov does not work · Issue #395 · python-control/python-control
Description: Hi, I am new to this and it might be a silly doubt but since i could not find an answer anywhere, I am opening an issue here. My problem is that I need to estimate initial states for my state space model. This requires that I find the ma...
Open Graph Description: Hi, I am new to this and it might be a silly doubt but since i could not find an answer anywhere, I am opening an issue here. My problem is that I need to estimate initial states for my state space...
X Description: Hi, I am new to this and it might be a silly doubt but since i could not find an answer anywhere, I am opening an issue here. My problem is that I need to estimate initial states for my state space...
Opengraph URL: https://github.com/python-control/python-control/issues/395
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"control.matlab.markov does not work","articleBody":"Hi,\r\nI am new to this and it might be a silly doubt but since i could not find an answer anywhere, I am opening an issue here.\r\n\r\nMy problem is that I need to estimate initial states for my state space model. This requires that I find the markov parameters. I checked the documentation and tried the following example.\r\n`import control.matlab as mt\r\ninp=np.array([1,2])\r\noutp=np.array([2,4])\r\nmrk= mt.markov(outp,inp,1)`\r\n\r\nI just took one input and one output as shown above and tried to run the code. It always gives me the following error\r\n\r\n\"Traceback (most recent call last):\r\n\r\n File \"\u003cipython-input-10-c31db07b63e1\u003e\", line 3, in \u003cmodule\u003e\r\n mrk= mt.markov(outp,inp,1)\r\n\r\n File \"C:\\Users\\Gopal123\\Anaconda3\\lib\\site-packages\\control\\modelsimp.py\", line 421, in markov\r\n Ulast = np.vstack((0, np.reshape(UU[0:n-1, m-2], (-1, 1))))\r\n\r\nIndexError: too many indices for array\r\n\"\r\nI am not able to understand the reason for this. I'd appreciate it if anyone can help me out. Thanks.\r\n","author":{"url":"https://github.com/nrgopalrao","@type":"Person","name":"nrgopalrao"},"datePublished":"2020-04-22T13:09:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/395/python-control/issues/395"}
| 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:44c697b3-a747-371e-885e-1a0e11830d28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1F2:17F574:5D0C94:8265E3:6979ED6B |
| html-safe-nonce | f9a7e5d2448c1eb5c18769507875b759a78911acb54c9726117893259113cdfa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUYyOjE3RjU3NDo1RDBDOTQ6ODI2NUUzOjY5NzlFRDZCIiwidmlzaXRvcl9pZCI6IjUwMTUwNzg4OTYzNDk2MDUyMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 17d988ee2e9274d2b5a865fe5e454ef84cbeabe1a57e5c128f93651e30cd2683 |
| hovercard-subject-tag | issue:604744497 |
| 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/395/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ff0a9467e60a5e7d2f8653c210d15670d9ed87f482d2cb4331627c5f782dac8/python-control/python-control/issues/395 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ff0a9467e60a5e7d2f8653c210d15670d9ed87f482d2cb4331627c5f782dac8/python-control/python-control/issues/395 |
| og:image:alt | Hi, I am new to this and it might be a silly doubt but since i could not find an answer anywhere, I am opening an issue here. My problem is that I need to estimate initial states for my state space... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nrgopalrao |
| hostname | github.com |
| expected-hostname | github.com |
| None | d518616844426fb176f4177c4776349f6e70ef1ce75f459c8c53bf9293bb6982 |
| 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 | 22c6ce7724007ae85d7487fce3308a1c7cea8be6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width