PBCH resource element indices


  • ind = ltePBCHIndices(enb)
  • ind = ltePBCHIndices(enb,opts)


ind = ltePBCHIndices(enb) returns an N-by-CellRefP matrix of resource element (RE) indices for the Physical Broadcast Channel (PBCH) given the parameter fields of structure enb. By default, the indices are returned in 1-based linear indexing form that can directly index elements of a 3-D array representing the subframe resource grid for CellRefP antennas. These indices are ordered as the PBCH modulation symbols should be mapped. Alternative indexing formats can also be generated. The PBCH is only transmitted in first subframe of each frame.


ind = ltePBCHIndices(enb,opts) allows control of the format of the returned indices through a cell array, opts, of option strings.


collapse all

Generate PBCH RE Indices

Generate zero-based PBCH resource element indices in linear form for RMC R.14.

enb = lteRMCDL('R.14');
ind = ltePBCHIndices(enb,{'0based'});
ans =

        4465       12865       21265       29665
        4466       12866       21266       29666
        4468       12868       21268       29668
        4469       12869       21269       29669

Input Arguments

collapse all

enb — Cell-wide settingsstructure

Cell-wide settings, specified as a structure. enb contains the following fields.

NDLRB — Number of downlink resource blocksscalar value

Number of downlink resource blocks, specified as a scalar value.

NCellID — Physical layer cell identityscalar integer

Physical layer cell identity, specified as a scalar integer.

CyclicPrefix — Cyclic prefix length'Normal' (default) | optional | 'Extended'

Cyclic prefix length, specified as a string.

CellRefP — Number of cell-specific reference signal antenna ports1 (default) | optional | 2 | 4

Number of cell-specific reference signal antenna ports, specified as 1, 2, or 4.

NSubframe — Subframe number0 (default) | optional | scalar integer

Subframe number, specified as a scalar integer.

Data Types: struct

opts — Index formatting optionscell array

Index formatting options, specified as a cell array. opts can contain the following option strings.

Indexing style — Form of returned indices'ind' (default) | 'sub'

Form of returned indices, specified as 'ind' for linear indexing or 'sub' for [subcarrier, symbol, antenna] subscript row style.

Index base — Index base of returned indices'1based' (default) | '0based'

Index base of returned indices, specified as '1based' for 1-based indices or '0based' for 0-based indices.

Data Types: char | cell

Output Arguments

collapse all

ind — PBCH resource element indicesnumeric matrix

PBCH resource element indices, returned as a numeric matrix of size N-by-CellRefP.

Data Types: double

Introduced in R2014a

Was this topic helpful?