Documentation

ltePSSIndices

PSS resource element indices

Syntax

  • ind = ltePSSIndices(enb)
  • ind = ltePSSIndices(enb,port)
    example
  • ind = ltePSSIndices(enb,port,opts)
    example

Description

ind = ltePSSIndices(enb) returns a column vector, ind, of resource element (RE) indices, Port 0 oriented, for the Primary Synchronization Signal (PSS), using the cell-wide settings structure, enb. By default, the indices are returned in one-based linear indexing form that can directly index elements of a 3-D array representing the resource array. These indices are ordered as the PSS modulation symbols should be mapped. Alternative indexing formats can also be generated.

    Note:   These indices are only defined for subframes 0 and 5 in FDD, and subframes 1 and 6 in TDD. Therefore, an empty vector is returned for other values of NSubframe. This behavior allows this function and the corresponding sequence function ltePSS to index the resource grid for any subframe number as described in Resource Grid Indexing. However, the resource grid is only modified in subframes 0 and 5 in FDD, or subframes 1 and 6 in TDD.

example

ind = ltePSSIndices(enb,port) returns indices appropriate for antenna port, port.

example

ind = ltePSSIndices(enb,port,opts) allows control of the format of the returned indices through a cell array opts of option strings.

Examples

collapse all

Get PSS Resource Element Indices

Get PSS resource element indices in linear form for antenna port 0.

Create a cell-wide configuration sturcture initialed for RMC R.4. Generate PSS indices for RMC R.4 for antenna port 0.

enb = lteRMCDL('R.4');
ind = ltePSSIndices(enb,0);
ind(1:4)
ans =

         438
         439
         440
         441

Get Zero-based PSS Resource Element Indices

Get zero-based PSS resource element indices in linear form for antenna port 0.

enb = lteRMCDL('R.4');
ind = ltePSSIndices(enb,0,{'0based','ind'});
ind(1:4)
ans =

         437
         438
         439
         440

Input Arguments

collapse all

enb — Cell-wide settingsstructure

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

NDLRB — Number of downlink resource blocks6,…,110

Number of downlink resource blocks, specified as nonnegative scalar integer.

Example: 9

Data Types: double

CyclicPrefix — Cyclic prefix length'Normal' (default) | optional | 'Extended'

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

Data Types: char

NSubframe — Subframe number0 (default) | optional | nonnegative scalar integer

Subframe number, specified as nonnegative scalar integer.

Example: 9

Data Types: double

DuplexMode — Duplex mode type'FDD' (default) | optional | 'TDD'

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

Data Types: char

port — Antenna port number0 (default) | 1 | 2 | 3

Antenna port number, specified as 0, 1, 2, or 3.

Example: 2

Data Types: double

opts — Options to control format of returned indicesstring | cell array of strings

Options to control format of returned indices, specified as a string or a cell array of strings. opts can contain the following option strings.

Indexing style — Indexing style of returned indices'ind' (default) | 'sub'

Cell array option, specified as 'ind' or 'sub'. If 'ind', the returned indices are in linear index form. If 'sub', the indices are in [subcarrier, symbol, antenna] subscript form.

Data Types: char

Index base — Index base of returned indices'1based' (default) | '0based'

Index base of returned indices, specified as '1based' or '0based'. This option string controls whether the returned indices are one-based or zero-based.

Data Types: char

Data Types: char | cell

Output Arguments

collapse all

ind — PSS resource element indicesinteger column vector | 3-column integer matrix

PSS resource element indices, returned as an integer column vector or a three-column integer matrix. This output is generated using the cell-wide settings structure, enb.

Data Types: uint32

See Also

|

Introduced in R2014a

Was this topic helpful?