Convert digital filter second-order section parameters to state-space form
[A,B,C,D] = sos2ss(sos)
[A,B,C,D] = sos2ss(sos,g)
sos2ss
converts a second-order section representation
of a digital filter to an equivalent state-space representation.
[A,B,C,D] = sos2ss(sos)
converts sos
,
a system expressed in second-order section form, to a single-input,
single-output state-space representation:
The discrete transfer function in second-order section form is given by
sos
is a L × 6 matrix
organized as
The entries of sos
must be real for proper
conversion to state space. The returned matrix A
is
of size 2L × 2L, B
is
a 2L × 1 column vector, C
is
a 1 × 2L row
vector, and D
is a 1 × 1 scalar.
[A,B,C,D] = sos2ss(sos,g)
converts
to state space a system sos
in second-order section
form with gain g
:
sos2ss
first converts from second-order sections
to transfer function using sos2tf
,
and then from transfer function to state-space using tf2ss
.