04.09.2019

Matlab Program For Uniform Quantization Encoding Failure

Matlab Program For Uniform Quantization Encoding Failure 4,0/5 2357 votes
  1. Matlab Program For Uniform Quantization Encoding Failure Definition

Description

At the receiver side we employ sampling, quantizing, encoding. Generally the two process named as encoding and quantizing are done in the same circuit known as analog to digital converter i.e. A to D converter. The operations done in the receiver circuit are regeneration of the received signal, decoder,.

y = uencode(u,n)quantizes the entries ina multidimensional array of floating-point numbers u andencodes them as integers using 2n-levelquantization. n mustbe an integer between 2 and 32 (inclusive). Inputs can be real orcomplex, double- or single-precision. The output y and the input u arearrays of the same size. The elements of the output y are unsignedintegers with magnitudes in the range [0, 2n-1].Elements of the input u outside of the range [-1,1] aretreated as overflows and are saturated.

Matlab Program For Uniform Quantization Encoding Failure
  • For entries in the input u thatare less than -1, the value of the output of uencode is0.

  • For entries in the input u thatare greater than 1, the value of the output of uencode is2n-1.

y = uencode(u,n,v) allowsthe input u to have entries with floating-pointvalues in the range [-v,v] before saturating them(the default value for v is 1).Elements of the input u outside of the range [-v,v] aretreated as overflows and are saturated:

Quantization
  • For input entries less than -v,the value of the output of uencode is 0.

  • For input entries greater than v,the value of the output of uencode is 2n – 1.

Matlab Program For Uniform Quantization Encoding Failure Definition

y = uencode(u,n,v,'SignFlag') mapsentries in a multidimensional array of floating-point numbers u whoseentries have values in the range [-v,v] to an integeroutput y. Input entries outside this range aresaturated. The integer type of the output depends on the number ofquantization levels 2n andthe value of 'SignFlag', which can be oneof the following:

Matlab Program For Uniform Quantization Encoding Failure
  • 'signed': Outputs are signed integerswith magnitudes in the range [-2n/2, (2n/2) – 1].

  • 'unsigned' (default): Outputs areunsigned integers with magnitudes in the range [0, 2n – 1].

The output data types are optimized for the number of bits asshown in the table below.

n

Unsigned Integer

Signed Integer

2 to 8

9 to 16

17 to 32