Main Content

ltePSSSIndices

PSSS resource element indices

Description

ind = ltePSSSIndices(ue) returns a 124-by-1 complex column vector of resource element (RE) indices for the primary sidelink synchronization signal (PSSS) values for user equipment settings in the ue structure. By default, the indices are returned in one-based linear indexing form. You can use this form to directly index elements of a matrix representing the subframe resource grid for antenna port 1020. For more information, see Primary Sidelink Synchronization Signal Indexing.

example

ind = ltePSSSIndices(ue,opts) formats the returned indices using options specified by opts.

example

Examples

collapse all

Generate PSSS values and indices. Write the values into the PSSS resource elements in a synchronization subframe (normal cyclic prefix) and display an image of their locations.

Create a user equipment settings structure and a resource grid that has a 10 MHz bandwidth and normal cyclic prefix.

ue.NSLRB = 50;
ue.CyclicPrefixSL = 'Normal';
ue.NSLID = 1;
subframe = lteSLResourceGrid(ue);

Generate PSSS indices and display the first five indices. Load the PSSS symbols into the resource grid. Display an image showing the PSSS symbol locations.

psss_indices = ltePSSSIndices(ue);
psss_indices(1:5)
ans = 5×1 uint32 column vector

   870
   871
   872
   873
   874

subframe(psss_indices) = ltePSSS(ue);
imagesc(100*abs(subframe));
axis xy;

Figure contains an axes object. The axes object contains an object of type image.

Generate PSSS indices using zero-based indexing style. Compare these indices to one-based indices.

Create a user equipment settings structure and a resource grid that has a 10 MHz bandwidth and normal cyclic prefix.

ue.NSLRB = 50;
ue.CyclicPrefixSL = 'Normal';
ue.NSLID = 1;
subframe = lteSLResourceGrid(ue);

Generate PSSS zero-based indices and view the first five indices.

psss_indices = ltePSSSIndices(ue,'0based');
psss_indices_size = size(psss_indices)
psss_indices_size = 1×2

   124     1

psss_indices(1:5)
ans = 5×1 uint32 column vector

   869
   870
   871
   872
   873

Generate PSSS one-based indices and view the first five indices.

psss_indices = ltePSSSIndices(ue,'1based');
psss_indices_size = size(psss_indices)
psss_indices_size = 1×2

   124     1

psss_indices(1:5)
ans = 5×1 uint32 column vector

   870
   871
   872
   873
   874

For zero-based indexing, the first assigned index is one lower than the one-based indexing style.

Input Arguments

collapse all

UE-specific settings, specified as a structure containing these parameter fields:

Number of sidelink resource blocks, specified as an integer scalar from 6 to 110.

Example: 6, which corresponds to a channel bandwidth of 1.4 MHz.

Data Types: double

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

Data Types: char | string

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

PSSS resource element indices, returned as an integer column vector or a three-column integer matrix. This output is generated using the UE-settings structure, ue. For more information, see Primary Sidelink Synchronization Signal Indexing.

More About

collapse all

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 R2016b