Products & Services Solutions Academia Support User Community Company

Learn more about Fixed-Point Toolbox   

Constructing quantizer Objects

You can use quantizer objects to quantize data sets. You can create quantizer objects in Fixed-Point Toolbox software in one of two ways:

To create a quantizer object with default properties, type

q = quantizer
 
q =
 
        DataMode = fixed
       RoundMode = floor
    OverflowMode = saturate
          Format = [16  15]

To copy a quantizer object, simply use assignment as in the following example:

q = quantizer;
r = q;
isequal(q,r)

ans =

     1

A listing of all the properties of the quantizer object q you just created is displayed along with the associated property values. All property values are set to defaults when you construct a quantizer object this way. See quantizer Object Properties for more details.

  


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