Documentation

This is machine translation

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

lteResourceGrid

Subframe resource array

Syntax

• ``grid = lteResourceGrid(cfg)``
example
• ``grid = lteResourceGrid(cfg,p)``
example

Description

example

````grid = lteResourceGrid(cfg)` returns an empty resource array generated from the configuration settings structure, `cfg`. To create a resource array specifically for downlink or uplink, use `lteDLResourceGrid` or `lteULResourceGrid`, respectively.For more information on the resource grid and the multidimensional array used to represent the resource elements for one subframe across all configured antenna ports, see Data Structures. ```

example

````grid = lteResourceGrid(cfg,p)` returns a resource array, where `p` directly specifies the number of antenna planes in the array.```

Examples

collapse all

Create an empty resource array that represents the downlink resource elements for 10MHz bandwidth, one subframe, and two antennas.

```griddl = lteResourceGrid(struct('NDLRB',50,'CellRefP',2,'CyclicPrefix','Normal')); size(griddl) ```
```ans = 600 14 2 ```

Create an empty resource array that represents the uplink resource elements for 10MHz bandwidth, one subframe, and two antennas.

```gridul = lteResourceGrid(struct('NULRB',50,'NTxAnts',2,'CyclicPrefixUL','Normal')); size(gridul) ```
```ans = 600 14 2 ```

Create an empty resource array that represents the downlink resource elements for 20 MHz bandwidth, one subframe, extended cyclic prefix, and four antennas planes.

```cfg = struct('NDLRB',100,'CyclicPrefix','Extended'); p = 4; griddl = lteResourceGrid(cfg,p); size(griddl) ```
```ans = 1200 12 4 ```

Input Arguments

collapse all

Configuration settings, specified as a scalar structure. To create a downlink resource array, `cfg` must contain the `NDLRB` and `CellRefP` fields. To create an uplink resource array, `cfg` must contain the `NULRB` field. The presence of field `NDLRB` takes precedence over the field `NULRB`.

For the downlink, these fields are applicable.

Parameter FieldRequired or OptionalValuesDescription
`NDLRB`Required

Scalar integer from 6 to 110

Number of downlink resource blocks. (${N}_{\text{RB}}^{\text{DL}}$)

`CellRefP`Required

1, 2, 4

Number of cell-specific reference signal (CRS) antenna ports

`CyclicPrefix`Optional

`'Normal'` (default), `'Extended'`

Cyclic prefix length

For the uplink, these fields are applicable.

Parameter FieldRequired or OptionalValuesDescription
`NULRB`Requiredscalar integer from 6 to 110

Number of uplink resource blocks. (${N}_{\text{RB}}^{\text{UL}}$)

`CyclicPrefixUL`Optional

`'Normal'` (default), `'Extended'`

Current cyclic prefix length

`NTxAnts`Optional

1 (default), 2, 4

Number of transmission antennas.

Number of antenna planes in the output array, specified as a nonnegative scalar integer.

Data Types: `double`

Output Arguments

collapse all

Empty multidimensional resource grid, returned as an N-by-M-by-P numeric array. N is the number of subcarriers (12×`NULRB`). M is the number of OFDM or SC-FDMA symbols in a subframe, 14 for normal cyclic prefix and 12 for extended cyclic prefix. P is the number of transmit antenna ports, `cfg``.``CellRefP` in the downlink and `cfg``.``NTxAnts` in the uplink.

Data Types: `double`