Impulse response of a single-input, continuous-time linear system.
Parameters : | system : an instance of the LTI class or a tuple describing the system.
T : 1-D array_like, optional
X0 : 1-D array_like, optional
N : int, optional
kwargs : various types
|
---|---|
Returns : | T : ndarray
yout : ndarray
|
Notes
The solution is generated by calling scipy.signal.lsim2, which uses the differential equation solver scipy.integrate.odeint.
New in version 0.8.0.
Examples
Second order system with a repeated root: x’‘(t) + 2*x(t) + x(t) = u(t)
>>> system = ([1.0], [1.0, 2.0, 1.0])
>>> t, y = impulse2(system)
>>> import matplotlib.pyplot as plt
>>> plt.plot(t, y)