A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python-control.readthedocs.io/en/stable/generated/control.matlab.lsim.html below:

Website Navigation


control.matlab.lsim — Python Control Systems Library 0.10.2 documentation

control.matlab.lsim
control.matlab.lsim(sys, U=0.0, T=None, X0=0.0)[source]

Simulate the output of a linear system.

As a convenience for parameters U and X0, numbers (scalars) are converted to constant arrays with the correct shape. The correct shape is inferred from arguments sys and T.

Parameters:
sysStateSpace or TransferFunction

LTI system to simulate.

Uarray_like or number, optional

Input array giving input at each time T (default = 0). If U is None or 0, a special algorithm is used. This special algorithm is faster than the general algorithm, which is used otherwise.

Tarray_like, optional for discrete LTI sys

Time steps at which the input is defined; values must be evenly spaced.

X0array_like or number, optional

Initial condition (default = 0).

Returns:
youtarray

Response of the system.

Tarray

Time values of the output.

xoutarray

Time evolution of the state vector.

Examples

>>> from control.matlab import rss, lsim
>>> G = rss(4)
>>> T = np.linspace(0,10)
>>> yout, T, xout = lsim(G, T=T)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4