initial
Initial condition response of state-space model. If no output arguments are given, the response is printed on the screen.
Inputs
State-space model.
Vector of initial conditions for each state.
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.
Optional simulation horizon. If not specified, it is calculated by the poles of the system to reflect adequately the response transients.
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.
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
Output response array. Has as many rows as time samples (length of t) and as many columns as outputs.
Time row vector.
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 |
Source Code: initial