canon
Canonical state-space realization
Description
transforms the linear modelcsys
= canon(sys
,type
)sys
into a canonical state-space modelcsys
.type
specifies whethercsys
is in modal or companion form.
For information on controllable and observable canonical forms, seeCanonical State-Space Realizations.
Examples
Input Arguments
Output Arguments
Limitations
You cannot use frequency-response data models to convert to canonical state-space form.
The companion form is poorly conditioned for most state-space computations, that is, the transformation to companion form is based on the controllability matrix which is almost always numerically singular for mid-range orders. Hence, avoid using it when possible.
Algorithms
Thecanon
command uses thebdschur
command to convertsys
into modal form and to compute the transformationT
. Ifsys
is not a state-space model,canon
first converts it to state space usingss
.
The reduction to companion form uses a state similarity transformation based on the controllability matrix[1].
References
[1] Kailath, T.Linear Systems, Prentice-Hall, 1980.