- 积分
- 992
- 注册时间
- 2014-12-4
- 最后登录
- 1970-1-1
- 打卡等级:偶尔看看
- 打卡总天数:105
- 打卡总奖励:319
|
楼主 |
发表于 2019-6-8 05:52:57
|
显示全部楼层
CE应该是
S^ 3+ 4* S^ 2+ 5* S+ 5 *的Kp
Kp需要低于2。
The CE should be
s^3+4*s^2+5*s+5*Kp
Kp needs to be lower than 2.
import numpy as np # import the numerical library for roots
Kp=2 # initialize the proportional gain
ce=[1,4,5,5*Kp] # the coefficients of the characteristic equation
poles = np.roots(ce) # compute the poles or roots
for i in range(poles.size): # print out the poles one at a time.
print("Pole{} = {:.2f}".format(i,complex(poles)))
如果您不喜欢python,请尝试Scilab或Octave。 他们都非常接近Matlab。
他们是免费的。
If you do not like python then try Scilab or Octave. They are both very close to Matlab.
They are free.
|
|