blob: 94d0fa50141efaaa9e04a2bc50d30b650de1e36a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from scipy import signal
import matplotlib.pyplot as plt
s1 = signal.lti([1, 2], [1, 4, 4, 6, 0])
w, mag, phase = signal.bode(s1)
plt.figure()
plt.semilogx(w, mag)
plt.figure()
plt.semilogx(w, phase)
plt.show()
|