-
According to python-control/control/timeresp.py step_info: sys = TransferFunction([-1, 1], [1, 1, 1])
S = step_info(sys)
for k in S:
print(f"{k}: {S[k]:3.4}") How is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The For your example, it turns out there is a small twist: the undershoot is zero and so the format string above will generate an error due to the way that
|
Beta Was this translation helpful? Give feedback.
The
step_info
command returns a Python dictionary object with the properties of the step response. Thefor
loop in the example iterates over the keys of the dictionary and prints the name of the key and its value.For your example, it turns out there is a small twist: the undershoot is zero and so the format string above will generate an error due to the way that
3.4
is interpreted (this format string only works for floats). But you can retrieve the values just by looking at the key-value pairs inS
. Using ipython, I get: