control.ctrb

control.ctrb(A, B, t=None)[source]

Controllability matrix.

Parameters
A, Barray_like or string

Dynamics and input matrix of the system.

tNone or integer

Maximum time horizon of the controllability matrix, max = A.shape[0].

Returns
C2D array

Controllability matrix.

Examples

>>> G = ct.tf2ss([1], [1, 2, 3])
>>> C = ct.ctrb(G.A, G.B)
>>> np.linalg.matrix_rank(C)
np.int64(2)