lsim Simulate time response of dynamic systems to arbitrary inputs. 1 X# \! A9 }5 [! G" U9 s1 ]/ ~5 T8 |% T9 P0 K0 V7 ^
[Y,T,X] = lsim(SYS,U,T,X0) $ {& L, ~* e9 m also returns the state trajectory X, a matrix with LENGTH(T) rows9 {, J% ^1 s; X) H- b8 X
and as many columns as states.