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 PSS symbols


sym = nrPSS(ncellid)
sym = nrPSS(ncellid,'OutputDataType',datatype)



sym = nrPSS(ncellid) returns the primary synchronization signal (PSS) symbols for the physical layer cell identity number ncellid. The function implements TS 38.211 Section [1].

sym = nrPSS(ncellid,'OutputDataType',datatype) specifies the data type of the PSS symbol.


collapse all

Generate the sequence of 127 PSS binary phase shift keying (BPSK) modulation symbols for a given cell identity. The PSS is transmitted in the first symbol of a Synchronization Signal / Physical Broadcast Channel (SS/PBCH) block.

ncellid = 17;
pss = nrPSS(ncellid)
pss =


Input Arguments

collapse all

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

Data Types: double

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

Data Types: char | string

Output Arguments

collapse all

PSS symbols, returned as a column vector of real numbers.

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

See Also


Introduced in R2018b