lteNPBCHIndices

Generate NPBCH resource element indices

Description

example

[ind,info] = lteNPBCHIndices(enb) returns 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 3GPP TS 36.211 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 number

double
NFrameOptional

0 (default),

nonnegative integer

Frame number

double

Data Types: struct

Index generation options, specified as a character vector, cell array of character vectors, or string array. For convenience, you can specify several options as a single character vector or string scalar by a space-separated list of values placed inside the quotes. This table shows values for opts when specified as a character vector (use double quotes for string).

OptionValuesDescription
Indexing style

'ind' (default), 'sub'

Style for the returned indices, specified as one of the following options.

  • 'ind' — Return the indices in linear index form as a 100-by-NBRefP matrix.

  • 'sub' — Return the indices in [subcarrier, symbol, port] subscript row style as an NRE-by-3 matrix where NRE is the number of resource elements.

Index base

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

Base value of the returned indices. Specify '1based' to generate indices where the first value is 1. Specify '0based' to generate indices where the first value is 0.

opts is an optional field. When it is not specified, the indices, ind, is a 100-by-NBRefP matrix.

Example: 'ind 1based', "ind 1based", {'ind','1based'}, and ["ind","1based"] 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.

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

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.

Introduced in R2019b