Contents

DLTISIM

Simulates a discrete-time LTI state-space system.

Syntax

y = dltisim(A,B,C,D,u)

[y,x] = dltisim(A,B,C,D,u,x0)

Description

This function simulates a discrete-time LTI state-space system. The model structure is the following:

$$ x(k+1) = Ax(k) + Bu(k) $$

$$ y(k) = Cx(k) + Du(k) $$

An optional initial state can be specified.

Inputs

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.

Outputs

y is the computed output sequence, an N x l matrix.

x is the (optional) computed state, an N x n matrix.

Algorithm

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.

Uses Functions

ltiitr

See Also

dlsim, ltiitr