dimpulse(system, x0=None, t=None, n=None)
A tuple describing the system. The following gives the number of elements in the tuple and the interpretation:
1: (instance of
dlti
)3: (num, den, dt)
4: (zeros, poles, gain, dt)
5: (A, B, C, D, dt)
Initial state-vector. Defaults to zero.
Time points. Computed if not given.
The number of time points to compute (if t
is not given).
Time values for the output, as a 1-D array.
Impulse response of system. Each element of the tuple represents the output of the system based on an impulse in each input.
Impulse response of discrete-time system.
>>> from scipy import signal
... import matplotlib.pyplot as plt
>>> butter = signal.dlti(*signal.butter(3, 0.5))See :
... t, y = signal.dimpulse(butter, n=25)
... plt.step(t, np.squeeze(y))
... plt.grid()
... plt.xlabel('n [samples]')
... plt.ylabel('Amplitude')
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.signal._ltisys.dlti.impulse
scipy.signal._ltisys.dstep
scipy.signal._ltisys.dlsim
scipy.signal._ltisys.dimpulse
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them