Channel quality information channel decoding
out = lteCQIDecode(chs,in)
the decoding on soft input data,
out = lteCQIDecode(
to be encoded using the procedure defined for channel quality information
(CQI) in TS 36.212, Sections 184.108.40.206 and 220.127.116.11.4  for given channel transmission
chs. The decoded output,
is a vector of length
the number of uncoded CQI bits transmitted.
Multiple codewords can be parameterized by two different forms
chs structure. Each codeword can be defined
by separate elements of a 1-by-2 structure array, or the codeword
parameters can be combined together in the fields of a single scalar,
or 1-by-1, structure. Any scalar field values apply to both codewords
and a scalar
NLayers is the total number. See UL-SCH Parameterization for
The block decoding is performed separately on each soft input
data using a maximum likelihood (ML) approach, which assumes that
been demodulated and equalized to best restore the original transmitted
values. The length of CQI bits defines the decoding process.
If the number of CQI bits,
OCQI, is less
than or equal to 11, a block decoding is performed to invert the coding
procedure defined in TS 36.212, Section 18.104.22.168.4 . If
OCQI is greater than 11,
the CQI bits are recovered by performing rate matching to
tail-biting Viterbi decoding, and 8-bit CRC decoding.
Decode encoded CQI bits.
Create input stream and initialize channel settings structures for encoding and decoding. Encode CQI bits and turn logical bits into soft data. Decode the CQI bits.
cqi = [0; 1; 0; 1; 0; 1];
chsEnc.Modulation = 'QPSK'; chsEnc.QdCQI = 16; chsEnc.NLayers = 1;
chsDec.NLayers = 1; chsDec.OCQI = 6;
enc = lteCQIEncode(chsEnc,cqi); enc = double(enc)-0.5;
rxCqi = lteCQIDecode(chsDec,enc)
rxCqi = 0 1 0 1 0 1
chs— Channel-specific transmission configurationscalar structure | structure array
Channel-specific transmission configuration, specified as a structure that can contain the following parameter fields.
|Parameter Field||Required or Optional||Values||Description|
nonnegative scalar integer, 0 (default)
Number of uncoded channel quality information (CQI) bits
1 (default), 2, 3, 4
Number of transmission layers
in— Encoded soft input datanumeric vector
Encoded soft input data, specified as a numeric vector.
 3GPP TS 36.212. "Multiplexing and channel coding." 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA). URL: http://www.3gpp.org.