scipy.signal.impulse2(system, X0=None, T=None, N=None, **kwargs)

Impulse response of a single-input continuous-time linear system.

The solution is generated by calling scipy.signal.lsim2, which uses the differential equation solver scipy.integrate.odeint.

Parameters :

system : an instance of the LTI class or a tuple describing the system.

The following gives the number of elements in the tuple and the interpretation.

2 (num, den) 3 (zeros, poles, gain) 4 (A, B, C, D)

T : 1D ndarray or array-like, optional

The time steps at which the input is defined and at which the output is desired. If T is not given, the function will generate a set of time samples automatically.

X0 : 1D ndarray or array-like, optional

The initial condition of the state vector. If X0 is None, the initial conditions are assumed to be 0.

N : int, optional

Number of time points to compute. If N is not given, 100 points are used.

**kwargs : :

Additional keyword arguments are passed on the function scipy.signal.lsim2, which in turn passes them on to scipy.integrate.odeint. See the documentation for scipy.integrate.odeint for information about these arguments.

Returns :

T : 1D ndarray

The time values for the output.

yout : ndarray

The output response of the system.


New in version 0.8.0.

Previous topic


Next topic


This Page