lsim Simulate time response of dynamic systems to arbitrary inputs. : @% D j l% C4 Z& K$ X+ K; S/ |) q) ^ E5 Y+ e
[Y,T,X] = lsim(SYS,U,T,X0) 8 E' p: }2 n9 J. r also returns the state trajectory X, a matrix with LENGTH(T) rows$ t9 a. }& A/ Z* Q' L
and as many columns as states.