diff options
-rw-r--r-- | hw4/prob_1.py | 11 | ||||
-rw-r--r-- | hw4/prob_2.py | 8 | ||||
-rw-r--r-- | hw4/prob_5.py | 11 | ||||
-rw-r--r-- | hw5/5_9.pdf | bin | 0 -> 1237796 bytes | |||
-rw-r--r-- | hw5/6_2.pdf | bin | 0 -> 951344 bytes | |||
-rw-r--r-- | hw5/6_3.pdf | bin | 0 -> 643401 bytes | |||
-rw-r--r-- | hw5/6_7.pdf | bin | 0 -> 3634781 bytes | |||
-rw-r--r-- | hw5/6_9.pdf | bin | 0 -> 829452 bytes | |||
-rw-r--r-- | hw5/hw5.pdf | bin | 0 -> 65562 bytes | |||
-rw-r--r-- | hw5/matlab/1_a_rl.png | bin | 0 -> 24910 bytes | |||
-rw-r--r-- | hw5/matlab/1_b_rl.png | bin | 0 -> 21510 bytes | |||
-rw-r--r-- | hw5/matlab/1_c_rl.png | bin | 0 -> 39885 bytes | |||
-rw-r--r-- | hw5/matlab/2_1.png | bin | 0 -> 22146 bytes | |||
-rw-r--r-- | hw5/matlab/2_2.png | bin | 0 -> 16718 bytes | |||
-rw-r--r-- | hw5/matlab/2_3.png | bin | 0 -> 14638 bytes | |||
-rw-r--r-- | hw5/matlab/2_4.png | bin | 0 -> 15754 bytes | |||
-rw-r--r-- | hw5/matlab/mag and phase.pdf | bin | 0 -> 45991 bytes | |||
-rw-r--r-- | hw5/matlab/mag.png | bin | 0 -> 17982 bytes | |||
-rw-r--r-- | hw5/matlab/phase.png | bin | 0 -> 17049 bytes | |||
-rw-r--r-- | hw5/matlab/whole2.pdf | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..597a154 --- /dev/null +++ b/hw5/5_9.pdf diff --git a/hw5/6_2.pdf b/hw5/6_2.pdf Binary files differnew file mode 100644 index 0000000..53ece2c --- /dev/null +++ b/hw5/6_2.pdf diff --git a/hw5/6_3.pdf b/hw5/6_3.pdf Binary files differnew file mode 100644 index 0000000..7a4cdd3 --- /dev/null +++ b/hw5/6_3.pdf diff --git a/hw5/6_7.pdf b/hw5/6_7.pdf Binary files differnew file mode 100644 index 0000000..61ff086 --- /dev/null +++ b/hw5/6_7.pdf diff --git a/hw5/6_9.pdf b/hw5/6_9.pdf Binary files differnew file mode 100644 index 0000000..34fa56e --- /dev/null +++ b/hw5/6_9.pdf diff --git a/hw5/hw5.pdf b/hw5/hw5.pdf Binary files differnew file mode 100644 index 0000000..46fd987 --- /dev/null +++ b/hw5/hw5.pdf diff --git a/hw5/matlab/1_a_rl.png b/hw5/matlab/1_a_rl.png Binary files differnew file mode 100644 index 0000000..46fa0d8 --- /dev/null +++ b/hw5/matlab/1_a_rl.png diff --git a/hw5/matlab/1_b_rl.png b/hw5/matlab/1_b_rl.png Binary files differnew file mode 100644 index 0000000..712f8e9 --- /dev/null +++ b/hw5/matlab/1_b_rl.png diff --git a/hw5/matlab/1_c_rl.png b/hw5/matlab/1_c_rl.png Binary files differnew file mode 100644 index 0000000..080d935 --- /dev/null +++ b/hw5/matlab/1_c_rl.png diff --git a/hw5/matlab/2_1.png b/hw5/matlab/2_1.png Binary files differnew file mode 100644 index 0000000..62b4c1f --- /dev/null +++ b/hw5/matlab/2_1.png diff --git a/hw5/matlab/2_2.png b/hw5/matlab/2_2.png Binary files differnew file mode 100644 index 0000000..c857a66 --- /dev/null +++ b/hw5/matlab/2_2.png diff --git a/hw5/matlab/2_3.png b/hw5/matlab/2_3.png Binary files differnew file mode 100644 index 0000000..ae49066 --- /dev/null +++ b/hw5/matlab/2_3.png diff --git a/hw5/matlab/2_4.png b/hw5/matlab/2_4.png Binary files differnew file mode 100644 index 0000000..5b9d32a --- /dev/null +++ b/hw5/matlab/2_4.png diff --git a/hw5/matlab/mag and phase.pdf b/hw5/matlab/mag and phase.pdf Binary files differnew file mode 100644 index 0000000..96b4393 --- /dev/null +++ b/hw5/matlab/mag and phase.pdf diff --git a/hw5/matlab/mag.png b/hw5/matlab/mag.png Binary files differnew file mode 100644 index 0000000..a4fd1de --- /dev/null +++ b/hw5/matlab/mag.png diff --git a/hw5/matlab/phase.png b/hw5/matlab/phase.png Binary files differnew file mode 100644 index 0000000..397511d --- /dev/null +++ b/hw5/matlab/phase.png diff --git a/hw5/matlab/whole2.pdf b/hw5/matlab/whole2.pdf Binary files differnew file mode 100644 index 0000000..d6b9af2 --- /dev/null +++ b/hw5/matlab/whole2.pdf |