I want to calculate the initial condition x0
of a sate-space representation of 2nd Order in order to use it in lsim
command, using the initial system outputs (that I already have).
I know that an initial condition for 1st order looks like this: (sys includes the state-space vectors)
x0 = (y(1) - sys.d*u(1))*pinv(sys.c);
The problem for he second Order is that x0 is a vector x0 = [x(1) x(2)]
. I have tried to solve it as an equation system but didn't get convinving results.
Ideas ?