Signal Toolkit - cell2sos
- Function File:
sos =cell2sos(cll) - Function File:
[sos, g] =cell2sos(cll) Convert a second-order-section cell array to matrix form.
Given a cell array cll representing second-order sections, return the equivalent matrix sos and an optional overall gain g.
A valid cll input is a cell array of 2-element cell arrays. Each element consists of a numerator vector
[b0, b1, b2]and a denominator vector[1, a1, a2]. If the first element contains two scalars{gn, gd}, it is treated as an overall gain.Examples:
## Two sections, no gain: cll = {{[2 4 2] [6 0 2]}, {[3 3 0] [6 0 0]}}; sos = cell2sos (cll) ⇒ sos = 2 4 2 6 0 2 3 3 0 6 0 0## With gain: cll = {{7 5}, {[2 4 2] [6 0 2]}, {[3 3 0] [6 0 0]}}; [sos, g] = cell2sos (cll) ⇒ sos = 2 4 2 6 0 2 3 3 0 6 0 0 ⇒ g = 1.4000See also: sos2cell.