Skip to content

Commit 37ccb27

Browse files
committed
BugFix: place_acker output should be 2D matrix
1 parent abeb0e4 commit 37ccb27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control/statefbk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def place_acker(A, B, poles):
252252
K = np.linalg.solve(ct, pmat)
253253

254254
K = K[-1, :] # Extract the last row
255-
return K
255+
return _ssmatrix(K)
256256

257257

258258
def lqr(*args, **kwargs):

0 commit comments

Comments
 (0)