Controllability matrix
Co = ctrb(A,B)
Co = ctrb(sys)
Co = ctrb(A,B)
returns the controllability
matrix:
where A is an n-by-n matrix, B is an n-by-m matrix, and Co has n rows and nm columns.
Co = ctrb(sys)
calculates the controllability
matrix of the state-space LTI object sys
. This
syntax is equivalent to:
Co = ctrb(sys.A,sys.B);
The system is controllable if Co
has full
rank n.
Estimating the rank of the controllability matrix is ill-conditioned; that is, it is very sensitive to roundoff errors and errors in the data. An indication of this can be seen from this simple example.
This pair is controllable if but
if , where eps is
the relative machine precision. ctrb(A,B)
returns
which is not full rank. For cases like these, it is better to
determine the controllability of a system using ctrbf
.