Main Content

assignmentquantizer

Create quantizer object with fi object attributes

Description

example

q = assignmentquantizer(a) creates a quantizer object q that is used in assignment operations for the fi object a. To use this object to quantize values, use quantize.

Examples

collapse all

Use assignmentquantizer to create a quantizer object with the same quantization attributes as a fi object.

F = fimath('RoundingMethod','Convergent','OverflowAction','Saturate');
a = fi([],0,16,13,F);
q = assignmentquantizer(a)
q =


        DataMode = ufixed
       RoundMode = convergent
    OverflowMode = saturate
          Format = [16  13]

Input Arguments

collapse all

Properties used for quantization, specified as a fi object.

Data Types: fi

See Also

| |

Introduced in R2008a