本文簡要介紹 python 語言中 scipy.signal.dlti.bode
的用法。
用法:
dlti.bode(w=None, n=100)#
計算discrete-time 係統的波德幅度和相位數據。
返回一個包含頻率 [rad/s]、幅度 [dB] 和相位 [deg] 的數組的 3 元組。有關詳細信息,請參閱
dbode
。例子:
>>> from scipy import signal >>> import matplotlib.pyplot as plt
構造采樣時間為 0.5s 的傳遞函數 :
>>> sys = signal.TransferFunction([1], [1, 2, 3], dt=0.5)
等效:signal.dbode(sys)
>>> 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()
相關用法
- Python SciPy distance.sokalmichener用法及代碼示例
- Python SciPy distance.dice用法及代碼示例
- Python SciPy datasets.clear_cache用法及代碼示例
- Python SciPy distance.braycurtis用法及代碼示例
- Python SciPy dok_array.diagonal用法及代碼示例
- Python SciPy distance.cityblock用法及代碼示例
- Python SciPy dia_array.diagonal用法及代碼示例
- Python SciPy dok_matrix.diagonal用法及代碼示例
- Python SciPy datasets.electrocardiogram用法及代碼示例
- Python SciPy dia_array.dot用法及代碼示例
- Python SciPy dok_matrix.nonzero用法及代碼示例
- Python SciPy distance.jensenshannon用法及代碼示例
- Python SciPy datasets.ascent用法及代碼示例
- Python SciPy distance.sokalsneath用法及代碼示例
- Python SciPy dia_matrix.diagonal用法及代碼示例
- Python SciPy distance.kulczynski1用法及代碼示例
- Python SciPy distance.jaccard用法及代碼示例
- Python SciPy distance.minkowski用法及代碼示例
- Python SciPy distance.pdist用法及代碼示例
- Python SciPy distance.rogerstanimoto用法及代碼示例
- Python SciPy distance.canberra用法及代碼示例
- Python SciPy dia_matrix.dot用法及代碼示例
- Python SciPy distance.is_valid_y用法及代碼示例
- Python SciPy distance.chebyshev用法及代碼示例
- Python SciPy distance.russellrao用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.signal.dlti.bode。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。