Documentation

lteSSSIndices

SSS resource element indices

Syntax

  • ind = lteSSSIndices(enb)
  • ind = lteSSSIndices(enb,port)
  • ind = lteSSSIndices(___,opts)
    example

Description

ind = lteSSSIndices(enb) returns a column vector of resource element indices, port 0 oriented, given the parameter fields of structure, enb. It returns a column vector of resource element (RE) indices for the Secondary Synchronization Signal (SSS). By default, the indices are returned in 1-based linear indexing form that can directly index elements of a 3-D array representing the resource array. These indices are ordered as the SSS modulation symbols should be mapped. Alternative indexing formats can also be generated.

These indices are only defined for subframes 0 and 5; therefore, an empty vector is returned for other values of NSubframe. This allows this function and the corresponding sequence function, lteSSS, to be used to index the resource grid, as described in Resource Grid Indexing, for any subframe number. However, the resource grid is only modified in subframes 0 and 5.

ind = lteSSSIndices(enb,port) returns indices appropriate for an antenna port, port, which must be either 0, 1, 2, or 3.

example

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

Examples

collapse all

Generate SSS RE Indices in Linear Form

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

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

         365
         366
         367
         368

Generate SSS RE Indices in Subscript Form

Generate 0-based SSS resource element indices in subscript form for antenna port 0. In this case, a matrix is generated where each row has three columns representing subcarrier, symbol, and antenna port.

Generate 0-based SSS resource element indices in subscript form for antenna port 0.

enb = lteRMCDL('R.4');
sssIndices = lteSSSIndices(enb,0,{'0based','sub'});
sssIndices(1:4,:)
ans =

           5           5           0
           6           5           0
           7           5           0
           8           5           0

The first column of the output represents subcarrier. The second column represents symbol. The third column represents antenna port.

Input Arguments

collapse all

enb — Cell-wide settingsstructure

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

NDLRB — Number of downlink resource blocksscalar integer from 6 to 110

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

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 | integer

Subframe number, specified as an integer.

Data Types: double

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

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

Data Types: char

Data Types: struct

port — Antenna port0 | 1 | 2 | 3

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

Data Types: double

opts — Format options for control of returned indicesstring | cell array of strings

Format options for control of returned indices, specified as a string or a cell array strings. It can contain the following option strings.

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

Form of returned indices, specified as 'ind' or 'sub'. The 'ind' options represents the linear index form, and the 'sub' string represents the subcarrier, symbol, antenna subscript row form.

Data Types: char

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

Index base of returned indices, specified as '1based' or '0based'.

Data Types: char

Data Types: char | cell

Output Arguments

collapse all

ind — SSS resource element (RE) indicescolumn vector

SSS resource element (RE) indices, returned as a column vector. By default, the indices are returned in 1-based linear indexing form that can directly index elements of a 3D array representing the resource array. These indices are ordered as the SSS modulation symbols should be mapped. Alternative indexing formats can also be generated.

Data Types: double

See Also

|

Introduced in R2014a

Was this topic helpful?