Main Content


Generate NPSS symbols for subframe



sym = lteNPSS(enb) generates sym, the narrowband primary synchronization signal (NPSS) symbols in a subframe for cell-wide settings enb.


collapse all

Initialize cell-wide settings by specifying a narrowband operation mode and subframe number.

enb.OperationMode = 'Standalone';    % Narrowband operation mode
enb.NSubframe = 5;                   % Subframe number

Generate the NPSS symbols.

sym = lteNPSS(enb);

Input Arguments

collapse all

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

NameRequired or OptionalValuesDescriptionData Types
OperationModeOptional'Standalone' (default), 'Inband-SamePCI', 'Inband-DifferentPCI', 'Guardband'

NB-IoT operation mode, specified as one of these values:

  • 'Standalone' – NB-IoT standalone operation within any 180-kHz band outside any LTE carrier bandwidth

  • 'Inband-SamePCI' – NB-IoT in-band operation with the same physical layer cell identity (PCI) as an LTE carrier

  • 'Inband-DifferentPCI' – NB-IoT in-band operation with a different PCI to an LTE carrier

  • 'Guardband' – NB-IoT guard-band operation utilizing unused resource blocks within the guard-band of an LTE carrier

char, string
NSubframeOptional5 (default), integerSubframe number. Because the NPSS is defined only for subframe 5, lteNPSS returns an empty array for any value of NSubframe other than 5. This behavior enables resource grid indexing for any subframe number.double
NCellIDRequired when you specify OperationMode as 'Inband-SamePCI' or 'Inband-DifferentPCI'Integer in the interval [0, 503]PCIdouble
CellRefPRequired when you specify OperationMode as 'Inband-SamePCI' or 'Inband-DifferentPCI'1, 2, 4Number of cell-specific antenna portsdouble


Specify the NCellID and CellRefP fields to exclude cell reference signal (RS) locations. If you do not specify both the NCellID and CellRefP fields, all cell RS locations are included.

Data Types: struct

Output Arguments

collapse all

NPSS symbols for a subframe, returned as a complex-valued column vector. If you specify the NSubframe field as any value other than 5, then lteNPSS returns sym as an empty array.

Data Types: double

Introduced in R2019a