This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Generate PBCH DM-RS symbols


sym = nrPBCHDMRS(ncellid,ibar_SSB)
sym = nrPBCHDMRS(ncellid,ibar_SSB,'OutputDataType',datatype)



sym = nrPBCHDMRS(ncellid,ibar_SSB) returns the physical broadcast channel (PBCH) demodulation reference signal (DM-RS) symbols for the physical layer cell, identified by ncellid. The ibar_SSB input specifies the time-dependent part of the DM-RS scrambling initialization. The function implements TS 38.211 Section [1].

sym = nrPBCHDMRS(ncellid,ibar_SSB,'OutputDataType',datatype) specifies the data type of the DM-RS symbol.


collapse all

Generate the sequence of 144 PBCH DM-RS symbols associated with the third SS block (i_SSB = 2) in the second half frame (n_hf = 1) of a frame.

ncellid = 17;
i_SSB = 2;
n_hf = 1;
ibar_SSB = i_SSB + (4*n_hf);

dmrs = nrPBCHDMRS(ncellid,ibar_SSB);

Input Arguments

collapse all

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

Data Types: double

Time-dependent part of the DM-RS scrambling initialization, specified as an integer from 0 to 7. ibar_SSB is derived in a synchronization signal (SS) burst configuration, from the least significant bits (LSBs) of the SS/PBCH block index and the half-frame number.

  • If the number of SS/PBCH blocks per half-frame is 4, ibar_SSB = iSSB + 4 × nhf, where iSSB is the two LSBs of the SS/PBCH block index (0 to 3). nhf is the half-frame number within the frame (0,1).

  • If the number of SS/PBCH blocks per half-frame is 8 or 64, ibar_SSB is the three LSBs of the SS/PBCH block index (0 to 7).

Data Types: double

Data type of the output symbols, specified as 'double' or 'single'.

Data Types: char | string

Output Arguments

collapse all

PBCH DM-RS symbols, returned as a complex column vector.

Data Types: single | double


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

Extended Capabilities

Introduced in R2018b