Documentation

lteResourceGridSize

Size of subframe resource array

Syntax

  • d = lteResourceGridSize(cfg)
    example
  • d = lteResourceGridSize(cfg,p)
    example

Description

example

d = lteResourceGridSize(cfg) returns a three-element row vector of dimension lengths for the resource array generated from the settings structure, cfg. To get the dimension lengths specifically for a downlink or uplink resource array, use the function lteDLResourceGridSize or lteULResourceGridSize 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

d = lteResourceGridSize(cfg,p) returns a three-element row vector, where p directly specifies the number of antenna planes in the array.

Examples

collapse all

Get Downlink Subframe Resource Array Size

Get the downlink subframe resource array size from a downlink configuration structure. Then, use the returned vector to directly create a MATLAB™ array.

cfgdl = struct('NDLRB',6,'CellRefP',2,'CyclicPrefix','Normal');
griddl = zeros(lteResourceGridSize(cfgdl));
size(griddl)
ans =

    72    14     2

The output grid, griddl, is a resource array. This resource array could be obtained in a similar manner using the lteResourceGrid function.

Get Uplink Subframe Resource Array Size

Get the uplink subframe resource array size from an uplink configuration structure. Then, use the returned vector to directly create a MATLAB™ array.

cfgul = struct('NULRB',6,'NTxAnts',2,'CyclicPrefixUL','Normal');
gridul = zeros(lteResourceGridSize(cfgul));
size(gridul)
ans =

    72    14     2

The output grid, gridul, is a resource array. This resource array could be obtained in a similar manner using the lteResourceGrid function.

Get Uplink Subframe Resource Array Size Using Optional Antenna Plane Input

Get the uplink subframe resource array size from an uplink configuration structure and antenna plane input. Then, use the returned vector to directly create a MATLAB™ array.

cfgul = struct('NULRB',25,'CyclicPrefixUL','Normal');
p = 4;
gridul = zeros(lteResourceGridSize(cfgul,p));
size(gridul)
ans =

   300    14     4

The output grid, gridul, is a resource array. This resource array could be obtained in a similar manner using the lteResourceGrid function.

Input Arguments

collapse all

cfg — Configuration settingsscalar structure

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. If both NDLRB and NULRB fields are defined, the presence of the field NDLRB takes precedence over the field NULRB.

For the downlink, these fields are applicable.

Parameter FieldRequired or OptionalValuesDescription
NDLRBRequired

Scalar integer (6,...,110). Standard bandwidth values are 6, 15, 25, 50, 75, and 100. NDLRB also accepts 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, these fields are applicable.

Parameter FieldRequired or OptionalValuesDescription
NULRBRequiredscalar integer from 6 to 110

Number of uplink (UL) resource blocks (RBs).

CyclicPrefixULOptional

'Normal' (default), 'Extended'

Current cyclic prefix length

NTxAntsOptional

1 (default), 2, 4

Number of transmission antennas.

p — Number of antenna planespositive scalar integer

Number of antenna planes, specified as a positive scalar integer.

Data Types: double

Output Arguments

collapse all

d — Dimension lengths of resource gridnumeric vector

Dimension lengths, returned as a three-element row vector [N M P]. 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

Introduced in R2014a

Was this topic helpful?