Size of uplink subframe resource array


  • d = lteULResourceGridSize(ue)
  • d = lteULResourceGridSize(ue,p)



d = lteULResourceGridSize(ue) returns a three-element row vector of dimension lengths for the resource array generated from the UE-specific settings structure ue. 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.


d = lteULResourceGridSize(ue,p) returns a three-element row vector, where p directly specifies the number of antenna planes in the array. In this case, NTxAnts is not required as a structure field of ue.


collapse all

Get Size of Uplink Subframe Resource Array

Use the returned vector to directly create MATLAB® arrays.

ue = struct('NULRB',6,'CyclicPrefixUL','Normal','NTxAnts',1);
rgrid = zeros(lteULResourceGridSize(ue));
ans =

    72    14

This result is the same matrix as the one obtained using the lteULResourceGrid function.

Get Uplink Subframe Resource Array Size Using Optional Antenna Plane Input

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

cfgul = struct('NULRB',50,'CyclicPrefixUL','Normal');
p = 2;
gridul = zeros(lteULResourceGridSize(cfgul,p));
ans =

   600    14     2

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

Input Arguments

collapse all

ue — UE-specific settingsscalar structure

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

NULRB — Number of uplink (UL) resource blocks (RBs)scalar integer from 6 to 110

Number of uplink (UL) resource blocks (RBs), specified as a scalar integer from 6 to 110.

Data Types: double

CyclicPrefixUL — Cyclic prefix length'Normal' (default) | optional | 'Extended'

Cyclic prefix length, specified as 'Normal' or 'Extended'.

Data Types: char

NTxAnts — Number of transmission antennas1 (default) | optional | 2 | 4

Number of transmission antennas, specified as 1, 2, or 4.

Data Types: double

Data Types: struct

p — Number of antenna planes in the return arrayscalar integer

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

Data Types: double

Output Arguments

collapse all

d — Dimension lengths3-element row 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 SC-FDMA symbols in a subframe, 14 for normal cyclic prefix and 12 for extended cyclic prefix. P is the number of transmission antennas.

Data Types: double

Introduced in R2014a

Was this topic helpful?