scipy.signal.lti.

bode#

lti.bode(w=None, n=100)[源代码][源代码]#

计算连续时间系统的Bode幅值和相位数据。

返回一个包含频率 [rad/s]、幅值 [dB] 和相位 [deg] 数组的 3 元组。详情请参见 bode

示例

>>> from scipy import signal
>>> import matplotlib.pyplot as plt
>>> sys = signal.TransferFunction([1], [1, 1])
>>> w, mag, phase = sys.bode()
>>> plt.figure()
>>> plt.semilogx(w, mag)    # Bode magnitude plot
>>> plt.figure()
>>> plt.semilogx(w, phase)  # Bode phase plot
>>> plt.show()
../../_images/scipy-signal-lti-bode-1_00.png
../../_images/scipy-signal-lti-bode-1_01.png