lteNPSS

Generate narrowband primary synchronization signal symbols for subframe

Syntax

sym = lteNPSS(enb)

Description

example

sym = lteNPSS(enb) returns narrowband primary synchronization signal (NPSS) symbols sym for the input cell-wide settings specified by enb.

Examples

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. You can specify enb to contain any of these fields.

NB-IoT operation mode, specified as 'Standalone', 'Inband-SamePCI', 'Inband-DifferentPCI', or 'Guardband'.

Data Types: char

Subframe number, specified as an integer. 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. If NSubframe is unspecified, then lteNPSS assumes NSubframe takes its default value.

Data Types: double

Physical layer cell identity, specified as an integer in the interval [0, 503]. 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.

Dependencies

This field applies only when you specify OperationMode as 'Inband-SamePCI' or 'Inband-DifferentPCI'.

Data Types: double

Number of cell-specific antenna ports, specified as 1, 2, or 4. Specify the NCellID and CellRefP fields to exclude cell RS locations. If you do not specify both the NCellID and CellRefP fields, all cell RS locations are included.

Dependencies

This field applies only when you specify OperationMode as 'Inband-SamePCI' or 'Inband-DifferentPCI'.

Data Types: double

Data Types: struct

Output Arguments

collapse all

NPSS symbols, 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.

Introduced in R2019a