Skip to content

Commit 1adfaf0

Browse files
committed
BUG: transpose outputs for discrete time simulations
1 parent 1f9e46c commit 1adfaf0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

control/timeresp.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False):
324324
dsys = (A, B, C, D, sys.dt)
325325
tout, yout, xout = sp.signal.dlsim(dsys, U, T, X0)
326326

327+
# Transpose the output and state vectors to match local convention
328+
xout = sp.transpose(xout)
329+
yout = sp.transpose(yout)
330+
327331
# See if we need to transpose the data back into MATLAB form
328332
if (transpose):
329333
T = np.transpose(T)

0 commit comments

Comments
 (0)