summaryrefslogtreecommitdiff
path: root/hw4/prob_1.py
blob: 92e8af6290e0b1102c1236415a47f442a635316d (plain)
1
2
3
4
5
6
7
8
9
10
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()
Copyright 2019--2024 Marius PETER