Skip to content

Commit 147a24e

Browse files
author
Mark
committed
Use sys.nstates in stead of using A.shape[0]
1 parent 2eef661 commit 147a24e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

control/passivity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def make_LMI_matrix(P):
3333

3434
P = np.zeros_like(A)
3535
matrix_list = []
36-
state_space_size = A.shape[0]
36+
state_space_size = sys.nstates
3737
for i in range(0, state_space_size):
3838
for j in range(0, state_space_size):
3939
if j <= i:

0 commit comments

Comments
 (0)