dsp.UniformEncoder
(Removed) Quantize and encode floating-point input into integer output
dsp.UniformEncoder
has been removed. Use uencode
instead. For more information, see Compatibility Considerations.
Description
The dsp.UniformEncoder
System object™ quantizes floating-point input, using the precision you specify in the
NumBits
property, and encodes the quantized input into integer output.
The operations of the uniform encoder adhere to the definition for uniform encoding specified
in ITU-T Recommendation G.701.
To quantize and encode a floating-point input into an integer output:
Create the
dsp.UniformEncoder
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Syntax
Description
returns a uniform
encoder, ue
= dsp.UniformEncoderue
, that quantizes floating-point input samples and encodes
them as integers using 2N-level quantization, where
N is an integer.
returns a uniform encoder, ue
= dsp.UniformEncoder(peakvalue
,numbits
)ue
, with the
PeakValue
property set to peakvalue
and the
NumBits
property set to numbits
.
returns a uniform encoder, ue
= dsp.UniformEncoder(___,Name,Value
)ue
, with the
PeakValue
property set to peakvalue
, the
NumBits
property set to numbits
, and other
specified properties set to the specified values.
Properties
Usage
Syntax
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
Examples
Algorithms
This object implements the algorithm, inputs, and outputs described on the Uniform Encoder block reference page. The object properties correspond to the block parameters.