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 markov parameters. I checked the documentation and tried the following example.
import control.matlab as mt inp=np.array([1,2]) outp=np.array([2,4]) mrk= mt.markov(outp,inp,1)
I just took one input and one output as shown above and tried to run the code. It always gives me the following error
"Traceback (most recent call last):
File "", line 3, in
mrk= mt.markov(outp,inp,1)
File "C:\Users\Gopal123\Anaconda3\lib\site-packages\control\modelsimp.py", line 421, in markov
Ulast = np.vstack((0, np.reshape(UU[0:n-1, m-2], (-1, 1))))
IndexError: too many indices for array
"
I am not able to understand the reason for this. I'd appreciate it if anyone can help me out. Thanks.