Main Content

ltePRSIndices

PRS resource element indices

Description

ind = ltePRSIndices(enb) returns a column vector of one-based linear indices for the PRS elements in the subframe, given the cell-wide settings parameter structure, enb. The length of ind is the number of resource elements (NRE). It returns the indices for the Positioning Reference Signal (PRS) resource element (RE) locations transmitted on antenna port 6. By default, these indices are in one-based linear indexing form that can directly index elements in a matrix representing a single subframe of the port 6 resource grid. Other index representations can also be created. These indices are ordered as the complex PRS symbols should be mapped and will not include any elements allocated to PBCH, PSS, and SSS. A PRS subframe configuration schedule can be defined as required. If the subframe contains no PRS, ind is an empty vector.

The optional enb.PRSPeriod parameter controls the downlink subframes in which PRS will be present, either always 'On' or 'Off', or defined by the scalar subframe configuration index, Iprs (0,...,2399), or the explicit subframe periodicity and offset pair, [Tprs Dprs], as listed in TS 36.211 [1], Section 6.10.4.3. The PRS containing subframes are located in conjunction with the parameters enb.NSubframe and optional enb.NFrame. NSubframe can be greater than 10; thus, setting NSubframe to 11 is equivalent to setting NSubframe to 1 and NFrame to 1.

example

ind = ltePRSIndices(enb,opts) formats the returned indices using options defined in opts.

Examples

collapse all

Generate the PRS resource element (RE) indices for subframe 0 of a 10 MHz downlink.

Create a cell-wide configuration structure initialized for RMC R.2. Configure for full band PRS (NPRSRB = NDLRB). Configure Iprs = 0, which sets [Tprs Dprs] = [160 0].

rmc = lteRMCDL('R.2');
rmc.NPRSRB = rmc.NDLRB;
rmc.PRSPeriod = 0;

Generate PRS indices.

prsIndices = ltePRSIndices(rmc,'ind');
prsIndices(1:4)
ans = 4x1 uint32 column vector

   1804
   1810
   1816
   1822

Input Arguments

collapse all

Cell-wide settings, specified as a structure. enb contains the following fields.

The parameters TDDConfig and SSC are only required if DuplexMode is set to 'TDD'.

Number of downlink resource blocks, specified as a nonnegative scalar integer from 6 through 110.

Example: 50

Data Types: double

Number of cell-specific reference signal antenna ports, specified as 1, 2, or 4.

Example: 1

Data Types: double

Physical layer cell identity, specified as a nonnegative scalar integer.

Example: 3

Data Types: double

Subframe number, specified as a nonnegative scalar integer.

Example: 3

Data Types: double

Frame number, specified as a nonnegative scalar integer.

Example: 3

Data Types: double

Cyclic prefix length, specified as 'Normal' or 'Extended'.

Data Types: char | string

Duplex mode type, specified as 'FDD' or 'TDD'.

Data Types: char | string

Uplink or downlink configuration for TDD, specified as a nonnegative scalar integer from 0 through 6. Optional. Required only for 'TDD' duplex mode.

Example: 4

Data Types: double

Example: 5

Special subframe configuration for TDD, specified as a nonnegative scalar integer from 0 through 9. Required only for 'TDD' duplex mode.

Data Types: double

Number of PRS physical resource blocks, specified as a nonnegative scalar integer from 0 through NDLRB.

Example: 32

Data Types: double

Positioning reference signal (PRS) period, specified as 'On', 'Off', a numeric scalar, or a 1-by-2 vector. This parameter controls the downlink subframes in which PRS will be present. For details, see ltePRSIndices.

Example: 0

Example: [160 0]

Data Types: string | char | double

Output format options for resource element indices, specified as a character vector, cell array of character vectors, or string array. For convenience, you can specify several options as a single character vector or string scalar by a space-separated list of values placed inside the quotes. Values for opts when specified as a character vector include (use double quotes for string) :

Category Options Description

Indexing style

'ind' (default)

The returned indices are in linear index style.

'sub'

The returned indices are in [subcarrier,symbol,port] subscript row style.

Index base

'1based' (default)

The returned indices are one-based.

'0based'

The returned indices are zero-based.

Example: 'ind 1based', "ind 1based", {'ind','1based'}, or ["ind","1based"] specify the same formatting options.

Data Types: char | string | cell

Output Arguments

collapse all

PRS resource element indices, returned as an integer column vector of length NRE or an integer matrix of size NRE-by-3. These indices are for the PRS resource element (RE) locations transmitted on antenna port 6.

Example: 1804

Data Types: uint32

References

[1] 3GPP TS 36.211. “Evolved Universal Terrestrial Radio Access (E-UTRA); Physical Channels and Modulation.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network. URL: https://www.3gpp.org.

Version History

Introduced in R2014a