From 0afe26582f3290dd945f3949c5c4176e4a676d8b Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Mon, 26 Aug 2019 16:59:51 -0700 Subject: course end --- hw4/prob_5.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hw4/prob_5.py (limited to 'hw4/prob_5.py') diff --git a/hw4/prob_5.py b/hw4/prob_5.py new file mode 100644 index 0000000..94d0fa5 --- /dev/null +++ b/hw4/prob_5.py @@ -0,0 +1,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() -- cgit v1.2.3