Simulate output of a discrete-time linear system.
Parameters : | system : class instance or tuple
u : array_like
t : array_like, optional
x0 : arry_like, optional
|
---|---|
Returns : | tout : ndarray
yout : ndarray
xout : ndarray, optional
|
See also
Examples
A simple integrator transfer function with a discrete time step of 1.0 could be implemented as:
>>> from scipy import signal
>>> tf = ([1.0,], [1.0, -1.0], 1.0)
>>> t_in = [0.0, 1.0, 2.0, 3.0]
>>> u = np.asarray([0.0, 0.0, 1.0, 1.0])
>>> t_out, y = signal.dlsim(tf, u, t=t_in)
>>> y
array([ 0., 0., 0., 1.])