Scilab Function

csim - simulation (time response) of linear system

Calling Sequence

[y [,x]]=csim(u,t,sl,[x0 [,tol]])

Parameters

Description

simulation of the controlled linear system sl. sl is assumed to be a continuous-time system represented by a syslin list.

u is the control and x0 the initial state.

y is the output and x the state.

The control can be:

1. a function : [inputs]=u(t)

2. a list : list(ut,parameter1,....,parametern) such that: inputs=ut(t,parameter1,....,parametern) (ut is a function)

3. the string "impuls" for impulse response calculation (here sl is assumed SISO without direct feed through and x0=0)

4. the string "step" for step response calculation (here sl is assumed SISO without direct feed-through and x0=0)

5. a vector giving the values of u correponding to each t value.

Examples

See Also