| Filter Design Toolbox | ![]() |
Convert cell array to second-order-section matrix
Syntax
Description
s = cell2sos(c)
converts cell array c of the form
where each numerator vector bi and denominator vector ai contains the coefficients of a linear or quadratic polynomial, to an L-by-6 second-order section matrix s of the form
When cell2sos encounters linear sections, it zero-pads the sections on the right.
[s,g] = cell2sos(c)
when the first element of c is a pair of scalars, forms the scalar gain g with the first pair and uses the remaining elements of c to build the s matrix.
Examples
c = {{[0.0181 0.0181],[1.0000 -0.5095]},{[1 2 1],[1 -1.2505 0.5457]}} c = {1x2 cell} {1x2 cell} s = cell2sos(c) s = 0.0181 0.0181 0 1.0000 -0.5095 0 1.0000 2.0000 1.0000 1.0000 -1.2505 0.5457
See Also
sos2ss, sos2tf, sos2zp, ss2sos, tf2sos, zp2sos
| ca2tf | cicdecimate | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |