Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ltePUSCHIndices

PUSCH resource element indices

Syntax

  • [ind,info] = ltePUSCHIndices(ue,chs)
  • [ind,info] = ltePUSCHIndices(ue,chs,opts)
    example

Description

[ind,info] = ltePUSCHIndices(ue,chs) returns a column vector of resource element indices given the UE-specific settings structure, ue, and channel transmission configuration, chs. It returns a column vector of Physical Uplink Shared Channel (PUSCH) resource element (RE) indices and a structure, info, containing information related to the PUSCH indices. By default, the indices are returned in 1-based linear indexing form that can directly index elements of a resource matrix. These indices are ordered as the PUSCH modulation symbols should be mapped. Alternative indexing formats can also be generated.

Support of PUSCH frequency hopping is provided by the function lteDCIResourceAllocation, which creates PRBSet from a DCI Format 0 message.

example

[ind,info] = ltePUSCHIndices(ue,chs,opts) formats the returned indices using options defined in opts.

Examples

collapse all

Generate 0-based PUSCH resource element (RE) indices in linear form.

frc = lteRMCUL('A1-1');
puschIndices = ltePUSCHIndices(frc,frc.PUSCH,{'0based','ind'});
puschIndices(1:4)
ans =

  4×1 uint32 column vector

   0
   1
   2
   3

Input Arguments

collapse all

UE-specific settings, specified as a structure having the following fields.

Parameter FieldRequired or OptionalValuesDescription
NULRBRequired

Scalar integer from 6 to 110

Number of uplink resource blocks. (NRBUL)

CyclicPrefixULOptional

'Normal' (default), 'Extended'

Cyclic prefix length.

NTxAntsOptional

1 (default), 2, 4

Number of transmission antennas.

ShortenedOptional

0 (default), 1

Option to shorten the subframe by omitting the last symbol, specified as 0 or 1. If 1, the last symbol of the subframe is not used. For subframes with possible SRS transmission, set Shortened to 1 to maintain a standard compliant configuration.

Data Types: struct

Channel transmission configuration, specified as a structure. It contains the following fields.

Parameter FieldRequired or OptionalValuesDescription
PRBSetRequired

Integer column vector or two-column matrix

PRB indices, specified as a column vector or a 2-column matrix, containing the Physical Resource Block indices (PRBs) corresponding to the resource allocations for this PUSCH.

ModulationOptional

'QPSK', '16QAM', '64QAM', or a cell array of these character vectors

Modulation format, specified as a character vector for one codeword or a cell array of one or more vectors for one or two codewords.

NLayersOptional

1 (default), 2, 3, 4

Number of transmission layers.

Data Types: struct

Output format options for resource element indices, specified as 'ind' or 'sub', and '1based' or '0based'. You can specify a format for the indexing style and index base.

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: 'sub' returns indices in subscript row style using the default one-based indexing style.

Data Types: char | cell

Output Arguments

collapse all

PUSCH resource element (RE) indices, returned as column vector of integers.

Data Types: uint32

Information related to the PUSCH indices, returned as a structure having the following fields.

Parameter FieldValuesDescription
G

1- or 2-element vector of integers

A one- or two-element vector, specifying the number of coded and rate matched UL-SCH data bits for each codeword

GdInteger

Number of coded and rate matched UL-SCH data symbols, equal to the number of rows in the PUSCH indices

Data Types: struct

Introduced in R2014a

Was this topic helpful?