Uniform Decoder
Decode integer input into floatingpoint output
Libraries:
DSP System Toolbox /
Quantizers
Description
The Uniform Decoder block performs the inverse operation of the Uniform Encoder block, and reconstructs quantized floatingpoint values from encoded integer input. The block adheres to the definition for uniform decoding specified in ITUT Recommendation G.701.
For more information on how the block computes the decoded floatingpoint output, see Algorithms.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types 

Direct Feedthrough 

Multidimensional Signals 

VariableSize Signals 

ZeroCrossing Detection 

Algorithms
The Uniform Decoder block first casts the integer input values to floatingpoint values, and then uniquely maps (decodes) them to one of 2^{B} uniformly spaced floatingpoint values in the range [−V, (1−2^{1−B})V], where you specify B in the Bits parameter (as an integer between 2 and 32) and V is a floatingpoint value specified by the Peak parameter. The smallest input value representable by B bits (0 for an unsigned input data type and −2^{B−1} for a signed input data type) is mapped to the value −V. The largest input value representable by B bits (2^{B}−1 for an unsigned input data type and 2^{B−1}−1 for a signed input data type) is mapped to the value (1−2^{1−B})V. Intermediate input values are linearly mapped to the intermediate values in the range [−V, (1−2^{1−B})V].
To correctly decode values encoded by the Uniform Encoder block, the Bits and Peak parameters of the Uniform Decoder block should be set to the same values as the Bits and Peak parameters of the Uniform Encoder block.
References
[1] General Aspects of Digital Transmission Systems: Vocabulary of Digital Transmission and Multiplexing, and Pulse Code Modulation (PCM) Terms, International Telecommunication Union, ITUT Recommendation G.701, March, 1993
Extended Capabilities
Version History
Introduced before R2006a
See Also
Functions
Blocks
 Uniform Encoder  Scalar Quantizer Decoder  Data Type Conversion (Simulink)  Quantizer (Simulink)