Products & Services Solutions Academia Support User Community Company

Learn more about Fixed-Point Toolbox   

exponentlength - Exponent length of quantizer object

Syntax

e = exponentlength(q)

Description

e = exponentlength(q) returns the exponent length of quantizer object q. When q is a fixed-point quantizer object, exponentlength(q) returns 0. This is useful because exponent length is valid whether the quantizer object mode is floating point or fixed point.

Examples

q = quantizer('double');
e = exponentlength(q)

e =

    11

Algorithm

The exponent length is part of the format of a floating-point quantizer object [w e]. For fixed-point quantizer objects, e = 0 by definition.

See Also

eps, exponentbias, exponentmax, exponentmin

  


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-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS