Constructing quantizer Objects

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

  • You can use the quantizer constructor function to create a new object.

  • You can use the quantizer constructor function to copy a quantizer object.

To create a quantizer object with default properties, type

q = quantizer
q =


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

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.

To copy a quantizer object, use assignment:

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

  logical

   1