Main Content

lteNPBCHIndices

Generate NPBCH RE indices

Since R2019b

Description

example

[ind,info] = lteNPBCHIndices(enb) generates ind, a matrix containing narrowband physical broadcast channel (NPBCH) resource element (RE) indices, and info, a structure containing information related to the indices. You can use ind to index elements of the subframe resource grid directly for all antenna ports in accordance with section 10.2.4.4 of [1]. Initialize this function with cell-wide settings enb.

example

[ind,info] = lteNPBCHIndices(enb,opts) formats the returned indices using options specified by opts.

Examples

collapse all

Generate the NPBCH RE Indices mapping for one antenna and display related information.

Create the eNodeB structure cell-wide settings for one antenna.

enb.NNCellID=10;
enb.NBRefP=1;

Generate the NPBCH RE Indices column vector. Display the first 10 indices.

[ind,info]=lteNPBCHIndices(enb);
ind(1:10)
ans = 10×1

    37
    38
    39
    40
    41
    42
    43
    44
    45
    46

Display the fields contained in the info structure.

info.G
ans = 1600
info.Gd
ans = 800

Generate NPBCH RE 0-based Indices in linear index form for two antennas.

Create eNodeB structure cell-wide settings for two antennas.

enb.NNCellID = 10;
enb.NBRefP = 2;

Generate the 0-based NPBCH RE indices in linear index form. The indices matrix has two columns, one for each antenna port. Display the first 10 indices.

[ind,info] = lteNPBCHIndices(enb,{'0based', 'ind'});
ind(1:10,:)
ans = 10×2

    36   204
    37   205
    38   206
    39   207
    40   208
    41   209
    42   210
    43   211
    44   212
    45   213

Display the fields contained in the info structure.

info.G
ans = 1600
info.Gd
ans = 800

Input Arguments

collapse all

Cell-wide settings, specified as a structure containing these fields.

Parameter FieldRequired or OptionalValuesDescriptionData Types
NNCellIDRequired

Nonnegative integer

NB-IoT physical layer cell identity

double
NBRefPRequired

1, 2

Number of narrowband reference signal antenna ports

double
NSubframeOptional

0 (default),

nonnegative integer

Subframe numberdouble
NFrameOptional

0 (default),

nonnegative integer

Frame number

double

Data Types: struct

Output format and index base of generated indices, specified as one of these forms.

  • 'format base'

  • "format base"

  • {'format','base'}

  • ["format","base"]

Where format and base are defined in this table.

OptionValuesDescription
format'ind' (default), 'sub'

Output format of generated indices

To return the indices as a column vector, specify this option as 'ind'.

To return the indices as an NRE-by-3 matrix, where NRE is the number of REs, specify this option as 'sub'. Each row of the matrix contains the subcarrier, symbol, and antenna port as its first, second, and third element, respectively.

base'1based' (default), '0based'

Index base

To generate indices whose first value is 1, specify this option as '1based'. To generate indices whose first value is 0, specify this option as '0based'.

Example: 'ind 0based', "ind 0based", {'ind','0based'}, and ["ind","0based"] specify the same output options.

Data Types: char | string | cell

Output Arguments

collapse all

NPBCH RE indices, returned as a real-valued matrix, depending on the indexing style specified in opts:

  • If you specify linear indexing (default), then ind is an 100-by-NBRefP matrix.

  • If you specify subscript row style indexing, then ind is an NRE-by-3 matrix, where NRE is the number of resource elements per subframe.

Data Types: double

Information related to NPBCH indices, returned as a structure containing these fields.

Parameter FieldValuesDescriptionData Types
G1600

Number of coded and rate-matched NPBCH data bits for a codeword.

double
Gd800

Number of coded and rate-matched NPBCH data symbols for each of the 8 sub blocks.

double

Data Types: struct

References

[1] 3GPP TS 36.211. “Physical channels and modulation (Release 14).” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA). URL: https://www.3gpp.org.

Version History

Introduced in R2019b