Simulate the output of a linear system.
As a convenience for parameters U, X0: Numbers (scalars) are converted to constant arrays with the correct shape. The correct shape is inferred from arguments sys and T.
For information on the shape of parameters U, T, X0 and return values T, yout, xout see: time-series-convention
Parameters: | sys: Lti (StateSpace, or TransferFunction)
T: array-like
U: array-like or number, optional
X0: array-like or number, optional
transpose: bool
**keywords:
|
---|---|
Returns: | T: array
yout: array
xout: array
|
See also
step_response, initial_response, impulse_response
Examples
>>> T, yout, xout = forced_response(sys, T, u, X0)
Initial condition response of a linear system
If the system has multiple inputs or outputs (MIMO), one input and one output have to be selected for the simulation. The parameters input and output do this. All other inputs are set to 0, all other outputs are ignored.
For information on the shape of parameters T, X0 and return values T, yout see: time-series-convention
Parameters: | sys: StateSpace, or TransferFunction
T: array-like object, optional
X0: array-like object or number, optional
input: int
output: int
transpose: bool
**keywords:
|
---|---|
Returns: | T: array
yout: array
|
See also
forced_response, impulse_response, step_response
Examples
>>> T, yout = initial_response(sys, T, X0)
Step response of a linear system
If the system has multiple inputs or outputs (MIMO), one input has to be selected for the simulation. Optionally, one output may be selected. The parameters input and output do this. All other inputs are set to 0, all other outputs are ignored.
For information on the shape of parameters T, X0 and return values T, yout see: time-series-convention
Parameters: | sys: StateSpace, or TransferFunction
T: array-like object, optional
X0: array-like or number, optional
input: int
output: int
transpose: bool
**keywords:
|
---|---|
Returns: | T: array
yout: array
|
See also
forced_response, initial_response, impulse_response
Examples
>>> T, yout = step_response(sys, T, X0)
Phase plot for 2D dynamical systems
Produces a vector field or stream line plot for a planar system.
Parameters: | func : callable(x, t, ...)
X, Y: ndarray, optional
scale: float, optional
X0: ndarray of initial conditions, optional
T: array-like or number, optional
lingrid = N or (N, M): integer or 2-tuple of integers, optional
lintime = N: integer, optional
logtime = (N, lambda): (integer, float), optional
timepts = [t1, t2, ...]: array-like, optional
parms: tuple, optional
|
---|
See also
box_grid, Y
box_grid generate list of points on edge of box
list = box_grid([xmin xmax xnum], [ymin ymax ynum]) generates a list of points that correspond to a uniform grid at the end of the box defined by the corners [xmin ymin] and [xmax ymax].