Skip to content

Commit 7c9d9a6

Browse files
committed
change np.bmat -> np.block in timeresp.py
1 parent 4f48c5d commit 7c9d9a6

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
@@ -333,7 +333,7 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False,
333333
# [ u(dt) ] = exp [ 0 0 I ] [ u0 ]
334334
# [u1 - u0] [ 0 0 0 ] [u1 - u0]
335335

336-
M = np.bmat([[A * dt, B * dt, np.zeros((n_states, n_inputs))],
336+
M = np.block([[A * dt, B * dt, np.zeros((n_states, n_inputs))],
337337
[np.zeros((n_inputs, n_states + n_inputs)),
338338
np.identity(n_inputs)],
339339
[np.zeros((n_inputs, n_states + 2 * n_inputs))]])

0 commit comments

Comments
 (0)