Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Extract resource elements

```
[re,reind]
= lteExtractResources(ind,grid)
```

```
[re1,re2,...,reN,reind1,reind2,
...,reindN]= lteExtractResources(ind,grid1,grid2,
...,gridN)
```

`re = lteExtractResources(___,opts)`

`[`

extracts resource elements `re`

,`reind`

]
= lteExtractResources(`ind`

,`grid`

)`re`

their indices `reind`

from
resource array `grid`

using resource elements indices
`ind`

. You can extract resource elements from a resource grid with different
dimensionality than the resource grid addressed by the indices. The indices specified and
returned are in 1–based linear indexing form. Other indexing options are available. The resource
extraction process is further explained in Algorithms.

In LTE Toolbox™, indices are generated for mapping
sequences of physical channel and signal symbols to a resource grid.
These indices are generated using channel-or signal-specific functions
and address resource elements in an array sized, *M*-by-*N*-by-*P*. *M* is
the number of subcarriers, *N* is the number of OFDM
or SC-FDMA symbols and *P* is the number of planes.
The diagram highlights the resource elements of a resource grid addressed
by indices, `ind`

. The indices are in a 1–based
linear indexing form. *P = 2* is the number of antenna
ports.

Typically the resource array extracts resource elements from one of the following:

A 3-D received grid, sized

*M*-by-*N*-by-*NRxAnts*.*NRxAnts*is the number of receive antennas. This grid is created after OFDM or SC-FDMA demodulation.A 4-D channel estimation grid, sized

*M*-by-*N*-by-*NRxAnts*-by-*P*. This grid is created by channel estimation functions (refer Channel Estimation).

You can describe the size of the 3D received grid as a 4D grid that has a trailing singleton dimension.

```
[re1,re2,...,reN,reind1,reind2,
...,reindN]= lteExtractResources(
```

extracts resource elements from multiple resource arrays using the indices
`ind`

,grid1,grid2,
...,gridN)`ind`

.

`lteCellRSIndices`

| `lteDLChannelEstimate`

| `lteDLResourceGrid`

| `lteOFDMDemodulate`

| `ltePBCHDecode`

| `ltePBCHIndices`

| `ltePCFICHDecode`

| `ltePCFICHIndices`

| `ltePDCCHDecode`

| `ltePDCCHDecode`

| `ltePDCCHIndices`

| `ltePDCCHIndices`

| `ltePDSCHDecode`

| `ltePDSCHIndices`

| `ltePHICHDecode`

| `ltePHICHIndices`

| `ltePUCCH1Decode`

| `ltePUCCH1Indices`

| `ltePUCCH2Decode`

| `ltePUCCH2Indices`

| `ltePUCCH3Decode`

| `ltePUCCH3Indices`

| `ltePUSCHDecode`

| `ltePUSCHIndices`

| `lteSCFDMADemodulate`

| `lteULChannelEstimate`

| `lteULChannelEstimatePUCCH1`

| `lteULChannelEstimatePUCCH2`

| `lteULChannelEstimatePUCCH3`

| `lteULResourceGrid`