Repository navigation
|
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 |
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 |
The
step_infocommand returns a Python dictionary object with the properties of the step response. Theforloop 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.4is 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: