Skip to content

Commit a03ed38

Browse files
committed
Fix impuse response, input data only contains one inpute[0]==1 in each trace
1 parent 4acc78b commit a03ed38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control/timeresp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@ def impulse_response(sys, T=None, input=None, output=None, T_num=None,
19601960
yout[:, inpidx, :] = response.y if output is None \
19611961
else response.y[output]
19621962
xout[:, inpidx, :] = response.x
1963-
uout[:, inpidx, :] = U[i]
1963+
uout[:, inpidx, :] = U if input is None else U[i]
19641964

19651965
# Figure out if the system is SISO or not
19661966
issiso = sys.issiso() or (input is not None and output is not None)

0 commit comments

Comments
 (0)