summaryrefslogtreecommitdiff
path: root/hw4/prob_5.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-08-26 16:59:51 -0700
committerMarius Peter <blendoit@gmail.com>2019-08-26 16:59:51 -0700
commit0afe26582f3290dd945f3949c5c4176e4a676d8b (patch)
tree19072727e189ebf3454ae25d92c9104b0e868eb3 /hw4/prob_5.py
parent8e0ca3c24a8dd2b49edb78b2e92fb7b569958211 (diff)
course endHEADmaster
Diffstat (limited to 'hw4/prob_5.py')
-rw-r--r--hw4/prob_5.py11
1 files changed, 11 insertions, 0 deletions
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()
Copyright 2019--2024 Marius PETER