order - Order of fixed-point filter
Syntax
n = order(hq)
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.
Examples
Create a discrete-time filter. Quantize the filter and convert
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.
n = 4
 | nstates | | parallel |  |
How much time do you spend on testing to ensure implementation meets system-level requirements?
Learn more