The function computes the coprime factors of the stabilizable and detectable state space realization
.
For each proper real rational transfer matrix , there exist eight transfer matrices in
satisfying the equations:





Let be a stabilizable and detectable realization and choose
,
, and
as:


Define the state feedback and observer gains and
as:


As output the function provides the structures and
with the realizations of respectively:
,
,
,
,
,
,
,
,