control.matlab.ctrb
- control.matlab.ctrb(A, B, t=None)[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
t (None or integer) – maximum time horizon of the controllability matrix, max = A.shape[0]
- 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) np.int64(2)