control.ctrb¶
- control.ctrb(A, B)[source]¶
Controllabilty matrix
- Parameters
A (array_like or string) – Dynamics and input matrix of the system
B (array_like or string) – Dynamics and input matrix of the system
- Returns
C – Controllability matrix
- Return type
2D array (or matrix)
Notes
The return type for 2D arrays depends on the default class set for state space operations. See
use_numpy_matrix()
.Examples
>>> G = ct.tf2ss([1], [1, 2, 3]) >>> C = ct.ctrb(G.A, G.B) >>> np.linalg.matrix_rank(C) 2