[sos, g] = zp2sos (z) ¶[sos, g] = zp2sos (z, p) ¶[sos, g] = zp2sos (z, p, k) ¶sos = zp2sos (…) ¶Convert filter poles and zeros to second-order sections.
INPUTS:
RETURNED:
sos = [B1.' A1.'; ...; BN.' AN.']
where
B1.' = [b0 b1 b2] and A1.' = [a0 a1 a2] for
section 1, etc.
See filter for documentation of the second-order direct-form filter
coefficients Bi and %Ai, i=1:N.
If called with only one output argument, the overall filter gain is applied to the first second-order section in the matrix sos.
EXAMPLE:
[z, p, k] = tf2zp ([1 0 0 0 0 1], [1 0 0 0 0 .9]);
[sos, g] = zp2sos (z, p, k)
sos =
1.0000 0.6180 1.0000 1.0000 0.6051 0.9587
1.0000 -1.6180 1.0000 1.0000 -1.5843 0.9587
1.0000 1.0000 0 1.0000 0.9791 0
g =
1
See also: sos2zp, sos2tf, tf2sos, zp2tf, tf2zp.
Package: signal