Main Content

nrPBCHDMRSIndices

R2026b

Generate PBCH DM-RS resource element indices

Description

ind = nrPBCHDMRSIndices(ncellid) returns the resource element indices for the physical broadcast channel (PBCH) demodulation reference signal (DM-RS). The function implements TS 38.211 Section 7.4.3.1 [1]. The corresponding physical layer cell is identified by ncellid. The returned indices are 1-based using linear indexing form. This indexing form can directly index the elements of a 240-by-4 matrix corresponding to the Synchronization Signal / Physical Broadcast Channel (SS/PBCH) block. The order of the indices indicates how the PBCH DM-RS modulation symbols are mapped.

example

ind = nrPBCHDMRSIndices(ncellid,Name=Value) specifies additional index formatting options by using one or more name-value arguments. Unspecified options take default values. For example, IndexStyle="subscript",IndexBase="0based" specifies nondefault resource element index formatting properties.

Examples

collapse all

Generate the 144 resource element indices associated with the PBCH DM-RS symbols within a single SS/PBCH block for a given cell identity.

ncellid = 17;
indices = nrPBCHDMRSIndices(ncellid)
indices = 144×1 uint32 column vector

   242
   246
   250
   254
   258
   262
   266
   270
   274
   278
   282
   286
   290
   294
   298
      ⋮

Input Arguments

collapse all

Physical layer cell identity number, specified as an integer from 0 to 1007.

Data Types: double

Name-Value Arguments

collapse all

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: IndexStyle="subscript",IndexBase="0based" specifies nondefault resource element index formatting properties.

RE indexing form, specified as one of these values:

  • 'index' — The indices are in linear index form.

  • 'subscript' — The indices are in [subcarrier, symbol, antenna] subscript row form.

Data Types: char | string

RE indexing base, specified as one of these values:

  • '1based' — The index counting starts from 1.

  • '0based' — The index counting starts from 0.

Data Types: char | string

Output Arguments

collapse all

PBCH DM-RS resource element indices, returned as one of the following.

  • Column vector — When IndexStyle is "index".

  • M-by-3 matrix — When IndexStyle is "subscript". The matrix rows correspond to the [subcarrier, symbol, antenna] subscripts based on the number of subcarriers and OFDM symbols in a SS/PBCH block, and the number of antennas, respectively.

Depending on IndexBase, the indices are either 1-based or 0-based.

Data Types: uint32

References

[1] 3GPP TS 38.211. “NR; Physical channels and modulation.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.

Version History

Introduced in R2018b

expand all