This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


UL-SCH interleaving


out = lteULSCHInterleave(ue,chs,cdata)
out = lteULSCHInterleave(ue,chs,cdata,ccqi,cri,cack)


out = lteULSCHInterleave(ue,chs,cdata) performs the UL-SCH channel interleaving on input cdata containing encoded transport channel (TrCH) data without UCI. It performs the UL-SCH data and UCI multiplexing and interleaving as defined in TS 36.212 Sections and [1]. This input can be a vector or a cell array of vectors, interleaved separately, and the output is of the same form.

Multiple codewords can be parameterized by two different forms of the 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 more details.


out = lteULSCHInterleave(ue,chs,cdata,ccqi,cri,cack) is as above except it also supports UL-SCH channel interleaving on both cdata and encoded UCI in ccqi, cri and cack. If any of these inputs are cell arrays, the output has the same form and any vector inputs are interleaved into the first cell of the output only. Any of the input cells or arrays can be empty if the associated input is not transmitted on one or more codewords.


collapse all

Interleave two PUSCH RBs worth of bits for QPSK modulation. Considering the REs reserved for PUSCH DM-RS, there are 144 REs available for PUSCH data per RB. Therefore, two RBs contain 288 PUSCH symbols. This results in 2*288 bits to QPSK modulate after interleaving.

Initialize UE specific and UL-SCH related parameter structures. Generate data for QPSK modulation of PUSCH symbols in two RBs. For QPSK, there are two bits per symbol. Perform interleaving and symbol modulation.

ue.CyclicPrefixUL = 'Normal';
ue.Shortened = 0;
chs.Modulation = 'QPSK';
chs.NLayers = 1;
numRB = 2;
numREperRB = 144;
bitsPerSymbol = 2;
numBits = numRB * numREperRB * bitsPerSymbol;
cdata = randi([0 1], numBits, 1);
interleaved = lteULSCHInterleave(ue, chs, cdata);
symbols = lteSymbolModulate(interleaved, 'QPSK');

Input Arguments

collapse all

UE-specific settings, specified as a structure with the following fields.

Cyclic prefix length, specified as 'Normal' or 'Extended'.

Data Types: char

Shorten subframe, specified as 0 or 1. If 1, the last symbol of the subframe is not used. It should be set if the current subframe contains a possible SRS transmission.

Data Types: logical

Data Types: struct

UL-SCH related parameters, specified as a scalar structure with the following fields.

Modulation format. Specified as a character vector or cell array of character vectors.

Data Types: char

Number of transmission layers (total or per codeword), specified as 1, 2, 3, or 4.

Data Types: double

Data Types: struct

Encoded TrCH data, specified as a column vector or a cell array of column vectors.

Data Types: double | cell

Encoded CQI, specified as a vector.

Data Types: double

Encoded RI, specified as a vector.

Data Types: double

Encoded ACK, specified as a vector.

Data Types: double

Output Arguments

collapse all

Interleaved UL-SCH output, returned as a numeric column vector or a cell array of numeric column vectors.

Data Types: double | cell


[1] 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:

Introduced in R2014a

Was this topic helpful?