I specify the system: H(s) = 10 / (1 + 0.5s + s^2) and use margin(sys) to get the crossover and phase margin. These are reported correctly as: 3.296rad/s, 9.485deg
Notice, m, p, omega are generated directly from the bode() function. If I send m, p, omega to margin(), I expect to see the same values for crossover and phase margin: 3.296rad/s and 9.485deg. Instead, this is what happens:
I specify the system: H(s) = 10 / (1 + 0.5s + s^2) and use
margin(sys)
to get the crossover and phase margin. These are reported correctly as: 3.296rad/s, 9.485degNotice, m, p, omega are generated directly from the
bode()
function. If I send m, p, omega tomargin()
, I expect to see the same values for crossover and phase margin: 3.296rad/s and 9.485deg. Instead, this is what happens:This behavior is observed with python-control v0.6d.
With Matlab R2013a:
Last edit: Adrian Ong 2014-04-11