Main Content

assignmentquantizer

Create quantizer object with fi object attributes

Description

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.

example

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

Version History

Introduced in R2008a

See Also

| |