伝達関数の根軌跡【control】
code:rlocus1.py
import numpy as np
from control import matlab as ctmt
import matplotlib.pyplot as plt
import control as ct
K, z, w = 1, 0.1, w
num = K
den = 1, 2 * z * w, w**2
G = ctmt.tf(num, den)
print(G)
roots, gains = ctmt.rlocus(G)
plt.show()
https://scrapbox.io/files/6683baa34424b2001dffae7b.png