| Signal Processing Toolbox | ![]() |
Convert a second-order section matrix to cell arrays.
Syntax
c = sos2cell(m)
Description
c = sos2cell(m)
changes an L-by-6 second-order section matrix m generated by tf2sos into a 1-by-L cell array of 1-by-2 cell arrays c. You can use c to specify a quantized filter with L cascaded second-order sections.
The matrix m should have the form
m = [b1 a1;b2 a2; ... ;bL aL]
where both bi and ai, with i = 1, ..., L, are 1-by-3 row vectors. The resulting c is a 1-by-L cell array of cells of the form
c = { {b1 a1} {b2 a2} ... {bL aL} }
c = sos2cell(m,g)
with the optional gain term g, prepends the constant value g to c. When you use the added gain term in the command, c is a 1-by-L cell array of cells of the form
c = {{g,1} {b1,a1} {b2,a2}...{bL,aL} }
Examples
Use sos2cell to convert the 2-by-6 second-order section matrix produced by tf2sos into a 1-by-2 cell array c of cells. Display the second entry in the first cell in c.
[b,a] = ellip(4,0.5,20,0.6);
m = tf2sos(b,a);
c = sos2cell(m);
c{1}{2}
ans =
1.0000 0.1677 0.2575
See Also
tf2sos |
Convert transfer functions to second-order sections. |
cell2sos |
Convert cell arrays for second-order sections to a matrix. |
| sinc | sos2ss | ![]() |