Communications Toolbox | ![]() ![]() |
Decode using differential pulse code modulation
Syntax
sig = dpcmdeco(indx,codebook,predictor); [sig,quanterror] = dpcmdeco(indx,codebook,predictor);
Description
implements differential pulse code demodulation to decode the vector sig
= dpcmdeco(indx,codebook,predictor)
indx
. The vector codebook
represents the predictive-error quantization codebook. The vector predictor
specifies the predictive transfer function. If the transfer function has predictive order M, then predictor
has length M+1 and an initial entry of 0. To decode correctly, use the same codebook and predictor in dpcmenco
and dpcmdeco
.
See either Representing Quantization Parameters or the reference page for quantiz
, for a description of the formats of partition
and codebook
.
is the same as the syntax above, except that the vector [sig,quanterror]
= dpcmdeco(indx,codebook,predictor)
quanterror
is the quantization of the predictive error based on the quantization parameters. quanterror
is the same size as sig
.
Note
You can estimate the input parameters codebook , partition , and predictor using the function dpcmopt .
|
Examples
See the sections Example: DPCM Encoding and Decoding and Example: Comparing Optimized and Nonoptimized DPCM Parameters for examples that use dpcmdeco
.
See Also
dpcmenco
, dpcmopt
, quantiz
, compand
References
Kondoz, A. M. Digital Speech. Chichester, England: John Wiley & Sons, 1994.
![]() | dmodce | dpcmenco | ![]() |