Documentation

lteResourceGrid

Subframe resource array

Syntax

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

Description

example

grid = lteResourceGrid(cfg) returns an empty resource array generated from the configuration settings structure, cfg. 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. To specifically create a downlink or uplink resource array, use lteDLResourceGrid or lteULResourceGrid. .

lteResourceGrid returns an empty multidimensional array used to represent the resource elements for one subframe across all configured antenna ports, as described in Data Structures.

The size of grid is N-by-M-by-P. The variable N is the number of subcarriers, 12×NDLRB. The variable M is the number of OFDM or SC-FDMA symbols in a subframe, 14 for normal cyclic prefix and 12 for extended cyclic prefix. The variable P is the number of transmit antenna ports, which is cfg.CellRefP in the downlink and cfg.NTxAnts in the uplink.

grid = lteResourceGrid(cfg,p) returns a resource array where the number of antenna planes in the array is specified directly by the parameter p.

Examples

collapse all

Create Downlink Subframe Resource Array

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));
size(griddl)
   600    14     2

Create Uplink Subframe Resource Array

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));
size(gridul)
   600    14     2

Input Arguments

collapse all

cfg — Configuration settingsscalar structure

Configuration settings, specified as a scalar structure. For the downlink, cfg can contain the following fields.

Parameter FieldRequired or OptionalValuesDescription
NDLRBRequired

Scalar integer (6, ..., 110). Standard bandwidth values are 6, 15, 25, 50, 75, and 100. NDLRB will also accept the standardized bandwidths in string format from the set {'1.4MHz', '3MHz', ‘5MHz', '10MHz', ‘15MHz', ‘20MHz'}.

Number of downlink (DL) resource blocks (RBs)

CellRefPRequired

1, 2, 4

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

CyclicPrefixOptional

'Normal' (default), 'Extended'

Cyclic prefix length

For the uplink, cfg can contain the following fields.

Parameter FieldRequired or OptionalValuesDescription
NULRBRequired

Positive scalar integer

Number of uplink (UL) resource blocks (RBs)

CyclicPrefixULOptional

'Normal' (default), 'Extended'

Current cyclic prefix length

NTxAntsOptional

1 (default), 2, 4

Number of transmission antenna ports. This argument is only present for UE-specific demodulation reference symbols.

p — Number of antenna planes in the output array nonnegative scalar integer

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

Data Types: double

Output Arguments

collapse all

grid — Empty multidimensional resource grid3-D numeric array

Empty multidimensional resource grid, returned as a 3-D numeric array. This argument is generated from the settings structure. It represents the resource elements for one subframe across all configured antenna ports. Its size is N-by-M-by-P. The variable N is the number of subcarriers, 12×NDLRB. The variable M is the number of OFDM or SC-FDMA symbols in a subframe, 14 for normal cyclic prefix and 12 for extended cyclic prefix. The variable P is the number of transmit antenna ports, cfg.CellRefP in the downlink and cfg.NTxAnts in the uplink.

Data Types: double

Introduced in R2014a

Was this topic helpful?