summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw4/prob_1.py11
-rw-r--r--hw4/prob_2.py8
-rw-r--r--hw4/prob_5.py11
-rw-r--r--hw5/5_9.pdfbin0 -> 1237796 bytes
-rw-r--r--hw5/6_2.pdfbin0 -> 951344 bytes
-rw-r--r--hw5/6_3.pdfbin0 -> 643401 bytes
-rw-r--r--hw5/6_7.pdfbin0 -> 3634781 bytes
-rw-r--r--hw5/6_9.pdfbin0 -> 829452 bytes
-rw-r--r--hw5/hw5.pdfbin0 -> 65562 bytes
-rw-r--r--hw5/matlab/1_a_rl.pngbin0 -> 24910 bytes
-rw-r--r--hw5/matlab/1_b_rl.pngbin0 -> 21510 bytes
-rw-r--r--hw5/matlab/1_c_rl.pngbin0 -> 39885 bytes
-rw-r--r--hw5/matlab/2_1.pngbin0 -> 22146 bytes
-rw-r--r--hw5/matlab/2_2.pngbin0 -> 16718 bytes
-rw-r--r--hw5/matlab/2_3.pngbin0 -> 14638 bytes
-rw-r--r--hw5/matlab/2_4.pngbin0 -> 15754 bytes
-rw-r--r--hw5/matlab/mag and phase.pdfbin0 -> 45991 bytes
-rw-r--r--hw5/matlab/mag.pngbin0 -> 17982 bytes
-rw-r--r--hw5/matlab/phase.pngbin0 -> 17049 bytes
-rw-r--r--hw5/matlab/whole2.pdfbin0 -> 78833 bytes
20 files changed, 30 insertions, 0 deletions
diff --git a/hw4/prob_1.py b/hw4/prob_1.py
new file mode 100644
index 0000000..92e8af6
--- /dev/null
+++ b/hw4/prob_1.py
@@ -0,0 +1,11 @@
+import numpy as np
+import control
+import matplotlib.pyplot as plt
+
+# L = control.TransferFunction((1), (1, 6, 5, 0, 0))
+# L = control.TransferFunction((1, 2), (1, 10, 0, 0))
+L = control.TransferFunction((1, 1), (1, -3, 0))
+
+rlist, klist = control.rlocus(L, kvect=np.linspace(100, -100, num=1000))
+
+plt.show()
diff --git a/hw4/prob_2.py b/hw4/prob_2.py
new file mode 100644
index 0000000..c53cddf
--- /dev/null
+++ b/hw4/prob_2.py
@@ -0,0 +1,8 @@
+import numpy as np
+from math import exp, cos, sin
+import matplotlib.pyplot as plt
+
+t = [0.01 * x for x in range(500)]
+y = [1.0015 - 1.0404 * exp(-0.432 * t) + 0.039 * exp(-11.5567 * t) for t in t]
+plt.plot(t, y)
+plt.show()
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()
diff --git a/hw5/5_9.pdf b/hw5/5_9.pdf
new file mode 100644
index 0000000..597a154
--- /dev/null
+++ b/hw5/5_9.pdf
Binary files differ
diff --git a/hw5/6_2.pdf b/hw5/6_2.pdf
new file mode 100644
index 0000000..53ece2c
--- /dev/null
+++ b/hw5/6_2.pdf
Binary files differ
diff --git a/hw5/6_3.pdf b/hw5/6_3.pdf
new file mode 100644
index 0000000..7a4cdd3
--- /dev/null
+++ b/hw5/6_3.pdf
Binary files differ
diff --git a/hw5/6_7.pdf b/hw5/6_7.pdf
new file mode 100644
index 0000000..61ff086
--- /dev/null
+++ b/hw5/6_7.pdf
Binary files differ
diff --git a/hw5/6_9.pdf b/hw5/6_9.pdf
new file mode 100644
index 0000000..34fa56e
--- /dev/null
+++ b/hw5/6_9.pdf
Binary files differ
diff --git a/hw5/hw5.pdf b/hw5/hw5.pdf
new file mode 100644
index 0000000..46fd987
--- /dev/null
+++ b/hw5/hw5.pdf
Binary files differ
diff --git a/hw5/matlab/1_a_rl.png b/hw5/matlab/1_a_rl.png
new file mode 100644
index 0000000..46fa0d8
--- /dev/null
+++ b/hw5/matlab/1_a_rl.png
Binary files differ
diff --git a/hw5/matlab/1_b_rl.png b/hw5/matlab/1_b_rl.png
new file mode 100644
index 0000000..712f8e9
--- /dev/null
+++ b/hw5/matlab/1_b_rl.png
Binary files differ
diff --git a/hw5/matlab/1_c_rl.png b/hw5/matlab/1_c_rl.png
new file mode 100644
index 0000000..080d935
--- /dev/null
+++ b/hw5/matlab/1_c_rl.png
Binary files differ
diff --git a/hw5/matlab/2_1.png b/hw5/matlab/2_1.png
new file mode 100644
index 0000000..62b4c1f
--- /dev/null
+++ b/hw5/matlab/2_1.png
Binary files differ
diff --git a/hw5/matlab/2_2.png b/hw5/matlab/2_2.png
new file mode 100644
index 0000000..c857a66
--- /dev/null
+++ b/hw5/matlab/2_2.png
Binary files differ
diff --git a/hw5/matlab/2_3.png b/hw5/matlab/2_3.png
new file mode 100644
index 0000000..ae49066
--- /dev/null
+++ b/hw5/matlab/2_3.png
Binary files differ
diff --git a/hw5/matlab/2_4.png b/hw5/matlab/2_4.png
new file mode 100644
index 0000000..5b9d32a
--- /dev/null
+++ b/hw5/matlab/2_4.png
Binary files differ
diff --git a/hw5/matlab/mag and phase.pdf b/hw5/matlab/mag and phase.pdf
new file mode 100644
index 0000000..96b4393
--- /dev/null
+++ b/hw5/matlab/mag and phase.pdf
Binary files differ
diff --git a/hw5/matlab/mag.png b/hw5/matlab/mag.png
new file mode 100644
index 0000000..a4fd1de
--- /dev/null
+++ b/hw5/matlab/mag.png
Binary files differ
diff --git a/hw5/matlab/phase.png b/hw5/matlab/phase.png
new file mode 100644
index 0000000..397511d
--- /dev/null
+++ b/hw5/matlab/phase.png
Binary files differ
diff --git a/hw5/matlab/whole2.pdf b/hw5/matlab/whole2.pdf
new file mode 100644
index 0000000..d6b9af2
--- /dev/null
+++ b/hw5/matlab/whole2.pdf
Binary files differ
Copyright 2019--2024 Marius PETER