Function File: initial (sys, x0)
Function File: initial (sys1, sys2, …, sysN, x0)
Function File: initial (sys1, 'style1', …, sysN, 'styleN', x0)
Function File: initial (sys1, …, x0, t)
Function File: initial (sys1, …, x0, tfinal)
Function File: initial (sys1, …, x0, tfinal, dt)
Function File: [y, t, x] = initial (sys, x0)
Function File: [y, t, x] = initial (sys, x0, t)
Function File: [y, t, x] = initial (sys, x0, tfinal)
Function File: [y, t, x] = initial (sys, x0, tfinal, dt)

Initial condition response of state-space model. If no output arguments are given, the response is printed on the screen.

Inputs

sys

State-space model.

x0

Vector of initial conditions for each state.

t

Optional time vector. Should be evenly spaced. If not specified, it is calculated by the poles of the system to reflect adequately the response transients.

tfinal

Optional simulation horizon. If not specified, it is calculated by the poles of the system to reflect adequately the response transients.

dt

Optional sampling time. Be sure to choose it small enough to capture transient phenomena. If not specified, it is calculated by the poles of the system.

’style’

Line style and color, e.g. ’r’ for a solid red line or ’-.k’ for a dash-dotted black line. See help plot for details.

Outputs

y

Output response array. Has as many rows as time samples (length of t) and as many columns as outputs.

t

Time row vector.

x

State trajectories array. Has length (t) rows and as many columns as states.

Example

                   .
Continuous Time:   x = A x ,   y = C x ,   x(0) = x0

Discrete Time:   x[k+1] = A x[k] ,   y[k] = C x[k] ,   x[0] = x0

See also: impulse, lsim, step.

Package: control