Signal Processing Toolbox    
sos2ss

Convert digital filter second-order section parameters to state-space form.

Syntax

Description

sos2ss converts a second-order section representation of a given digital filter to an equivalent state-space representation.

[A,B,C,D] = sos2ss(sos) converts the system sos, 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-by-6 matrix organized as

The entries of sos must be real for proper conversion to state space. The returned matrix A is size N-by-N, where N = 2L-1, B is a length N-1 column vector, C is a length N-1 row vector, and D is a scalar.

[A,B,C,D] = sos2ss(sos,g) converts the system sos in second-order section form with gain g.

Example

Compute the state-space representation of a simple second-order section system with a gain of 2.

Algorithm

sos2ss first converts from second-order sections to transfer function using sos2tf, and then from transfer function to state-space using tf2ss.

See Also
sos2tf
Convert digital filter second-order section parameters to transfer function form.
sos2zp
Convert digital filter second-order section parameters to zero-pole-gain form.
ss2sos
Convert state-space data for a digital filter to second-order sections form.
tf2ss
Convert transfer function data for a filter to state-space form.
zp2ss
Convert zero-pole-gain data for a filter to state-space form.


 sos2cell sos2tf