Documentation

lteDLResourceGridSize

Size of downlink subframe resource array

Syntax

  • d = lteDLResourceGridSize(enb)
    example
  • d = lteDLResourceGridSize(enb,p)

Description

example

d = lteDLResourceGridSize(enb) returns a three-element row vector of dimension lengths for the multidimensional array used to represent the resource elements for one subframe across all configured antenna ports, as described in Data Structures. It returns a 3-element row vector of dimension lengths for the resource array generated from the cell-wide settings structure, enb.

The vector d is [N M CellRefP], where N is the number of subcarriers (12×NDLRB), M is the number of OFDM or SC-FDMA symbols in a subframe, 14 for normal cyclic prefix and 12 for extended cyclic prefix, and CellRefP is the number of transmit antenna ports.

d = lteDLResourceGridSize(enb,p) returns a three-element row vector as above, except the number of antenna planes in the array is specified directly by parameter p. In this syntax, CellRefP is not required as a structure field of enb.

Examples

collapse all

Determine Downlink Subframe Resource Array Size

Determine the size of a downlink subframe resource array.

Determine the dimensions of a downlink subframe resource array, using cell-wide settings, enb. Then, use the returned vector directly to create a resource grid as a multidimensional array.

enb = struct('NDLRB',50,'CellRefP',2,'CyclicPrefix','Normal');
rgrid = zeros(lteDLResourceGridSize(enb));
size(rgrid)
ans =

   600    14     2

The same result can be obtained by calling the lteDLResourceGrid function.

Input Arguments

collapse all

enb — Cell-wide settingsstructure

Cell-wide settings, specified as a structure having the following fields.

NDLRB — Number of downlink resource blockspositive scalar integer (6,...,110)

Number of downlink resource blocks, specified as a positive scalar integer between 6 and 110. Standard bandwidth values are 6, 15, 25, 50, 75, and 100.

Data Types: double

CellRefP — Number of cell-specific reference signal antenna ports1 | 2 | 4

Number of cell-specific reference signal antenna ports, specified as 1, 2, or 4.

Data Types: double

CyclicPrefix — Cyclic prefix length'Normal' (default) | Optional | 'Extended'

Cyclic prefix length, specified as a string. Optional.

Data Types: char

Data Types: struct

p — Number of antenna planespositive scalar integer

Number of antenna planes, specified as a positive scalar integer. This argument directly specifies the number of antenna planes in the array.

Data Types: double

Output Arguments

collapse all

d — Downlink resource grid dimensionsnumeric 1-by-3 row vector

Downlink resource grid dimensions, returned as a numeric 1-by-3 row vector. When the function has a single argument, d is [N M CellRefP], where N is the number of subcarriers (12×NDLRB), M is the number of OFDM or SC-FDMA symbols in a subframe, and CellRefP is the number of transmit antenna ports. When the number of antenna planes, p, is specified as the second input argument, then d is [N M p] and the input field CellRefP of enb is not required.

Data Types: double

Introduced in R2014a

Was this topic helpful?