Filter Design Toolbox    
sos

Convert a quantized filter to second-order section form, order, and scale.

Syntax

Description

Hq2 = sos(Hq) returns a quantized filter Hq2 that has second-order sections and the dft2 structure. Use the same optional arguments used in tf2sos.

Hq2 = sos(Hq, order) specifies the order of the sections in Hq2, where order is either of the following strings:

Hq2 = sos(Hq, order, scale) also specifies the desired scaling of the gain and numerator coefficients of all second-order sections, where scale is one of the following strings:

Use infinity-norm scaling in conjunction with up-ordering to minimize the probability of overflow in the filter realization. Consider using 2-norm scaling in conjunction with down-ordering to minimize the peak round-off noise.

When Hq is a fixed-point filter, the filter coefficients are normalized so that the magnitude of the maximum coefficient in each section is 1. The gain of the filter is applied to the first scale value of Hq2.

sos uses the direct form II transposed (dft2) structure to implement second- order section filters.

Examples

See Also

qfilt, qfilt2tf

tf2sos in your Signal Processing Toolbox documentation


  setbits tf2ca