control.matlab.initial
- control.matlab.initial(sys, T=None, X0=0.0, input=None, output=None, return_x=False)[source]
Initial condition response of a linear system.
If the system has multiple outputs (?IMO), optionally, one output may be selected. If no selection is made for the output, all outputs are given.
- Parameters:
- sys
StateSpaceorTransferFunction LTI system to simulate.
- Tarray_like or number, optional
Time vector, or simulation time duration if a number (time vector is autocomputed if not given).
- X0array_like object or number, optional
Initial condition (default = 0).
- inputint
This input is ignored, but present for compatibility with step and impulse.
- outputint
If given, index of the output that is returned by this simulation.
- return_xbool, optional
If True, return the state vector in addition to outputs.
- sys
- Returns:
- youtarray
Response of the system.
- Tarray
Time values of the output.
- xoutarray (if selected)
Individual response of each x variable.
Examples
>>> from control.matlab import initial, rss
>>> G = rss(4) >>> yout, T = initial(G)