diff options
Diffstat (limited to 'hw4/prob_1.py')
-rw-r--r-- | hw4/prob_1.py | 11 |
1 files changed, 11 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() |