Products & Services Solutions Academia Support User Community Company

Learn more about Fixed-Point Toolbox   

lsb - Scaling of least significant bit of fi object, or value of least significant bit of quantizer object

Syntax

b = lsb(a)
p = lsb(q)

Description

b = lsb(a) returns the scaling of the least significant bit of fi object a. The result is equivalent to the result given by the eps function.

p = lsb(q) returns the quantization level of quantizer object q, or the distance from 1.0 to the next largest floating-point number if q is a floating-point quantizer object.

Examples

This example uses the lsb function to find the value of the least significant bit of the quantizer object q.

 q = quantizer('fixed',[8 7]);
 p = lsb(q)

p =

    0.0078

See Also

eps, intmax, intmin, lowerbound, quantize, range, realmax, realmin, upperbound

  


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