Simulates a discrete-time LTI state-space system.
y = dltisim(A,B,C,D,u)
[y,x] = dltisim(A,B,C,D,u,x0)
This function simulates a discrete-time LTI state-space system. The model structure is the following:
An optional initial state can be specified.
A,B,C,D is the discrete-time LTI state-space system matrices.
u is an N x m matrix conatining N samples of the m inputs.
x0 is the (optional) initial stae. an n x 1 vector.
y is the computed output sequence, an N x l matrix.
x is the (optional) computed state, an N x n matrix.
A direct iteration of the system's state-transition equation is used to obtain the state-trajectory for all time-instants. The function ltiitr is used to this end.