control.obsv

control.obsv(A, C, t=None)[source]

Observability matrix.

Parameters
A, Carray_like or string

Dynamics and output matrix of the system.

tNone or integer

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

Returns
O2D array

Observability matrix.

Examples

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