order

Order of fixed-point filter

Syntax

n = order(hq)
n = order(hs)

Description

n = order(hq) returns the order n of the quantized filter hq. When hq is a single-section filter, n is the number of delays required for a minimum realization of the filter.

When hq has more than one section, n is the number of delays required for a minimum realization of the overall filter.

n = order(hs) returns the order n of the filter System object™ hs. The order depends on the filter structure and the reference double-precision floating-point coefficients. hs can be one of the following filter structures.

The following Filter System objects are supported by this analysis function:

Filter System objects
dsp.FIRFilter
dsp.FIRInterpolator
dsp.CICInterpolator
dsp.FIRDecimator
dsp.CICDecimator
dsp.FIRRateConverter
dsp.BiquadFilter
dsp.IIRFilter
dsp.AllpoleFilter
dsp.AllpassFilter
dsp.CoupledAllpassFilter

Examples

Create a discrete-time filter, quantize it, and convert it to second-order section form. Then, use order to check the order of the filter.

[b,a] = ellip(4,3,20,.6); % Create the reference filter.
hq = dfilt.df2(b,a);
% Quantize the filter and convert to second-order sections.
set(hq,'arithmetic','fixed');

n=order(hq); % Check the order of the overall filter.
Was this topic helpful?