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)
Examples
>>> G = ct.tf2ss([1], [1, 2, 3]) >>> C = ct.ctrb(G.A, G.B) >>> np.linalg.matrix_rank(C) 2