Main Content


Size of uplink subframe resource array



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 Represent Resource Grids.


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

Use the returned vector to directly create MATLAB® arrays.

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

    72    14

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

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 = 1×3

   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-specific settings, specified as a scalar structure with the following fields.

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

Data Types: double

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

Data Types: char | string

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

Data Types: double

Data Types: struct

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

Data Types: double

Output Arguments

collapse all

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