Products & Services Solutions Academia Support User Community Company

Learn more about Filter Design Toolbox   

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
  


Free Early Verification Kit

Learn how to apply early verification to your development process through these technical resources.

How much time do you spend on testing to ensure implementation meets system-level requirements?

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS