Main Content
compreal
Description
returns the realization of the model csys
= compreal(sys
,type
)sys
depending on
type
. Specify type
as "c"
for
controllable companion form or "o"
for observable companion form.
"c"
— Computes the controllable companion realization for a single-input LTI modelsys
. This is the same as the first syntax."o"
— Computes the observable companion realization for a single-output LTI modelsys
.
Examples
Input Arguments
Output Arguments
Tips
Computing companion realizations often involves ill-conditioned transformations and loss
of accuracy. Use modalreal
or balreal
as numerically
stable alternatives.
Version History
Introduced in R2023b