We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1502d38 commit f63323cCopy full SHA for f63323c
1 file changed
examples/robust_mimo.py
@@ -54,11 +54,8 @@ def analysis():
54
g = plant()
55
56
t = np.linspace(0, 10, 101)
57
- _, yu1 = step_response(g, t, input=0)
58
- _, yu2 = step_response(g, t, input=1)
59
-
60
- yu1 = yu1
61
- yu2 = yu2
+ _, yu1 = step_response(g, t, input=0, squeeze=True)
+ _, yu2 = step_response(g, t, input=1, squeeze=True)
62
63
# linear system, so scale and sum previous results to get the
64
# [1,-1] response
@@ -112,8 +109,8 @@ def synth(wb1, wb2):
112
109
113
110
def step_opposite(g, t):
114
111
"""reponse to step of [-1,1]"""
115
116
117
return yu1 - yu2
118
119
0 commit comments