Main Content


Sidelink subframe resource array



grid = lteSLResourceGrid(ue) returns an empty resource grid matrix that represents the resource elements for one subframe, for the specified UE-specific setting structure.

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.

grid = lteSLResourceGrid(ue,ntxants) returns a 3-D resource grid array for the specified UE settings structure and number of antenna planes.


collapse all

Create an empty resource array representing the resource elements for 10 MHz bandwidth.

reGrid = lteSLResourceGrid(struct('NSLRB',50));

Input Arguments

collapse all

User equipment settings, specified as a structure containing these parameter fields:

Number of sidelink resource blocks, specified as an integer scalar from 6 to 110.

Example: 6, which corresponds to a channel bandwidth of 1.4 MHz.

Data Types: double

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

Data Types: char | string

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

Data Types: double

Output Arguments

collapse all

Resource element grid, returned as an NSC-by-NSYM-by-NTX array.

  • NSC is the number of subcarriers, 12*ue.NSLRB.

  • NSYM is the number of SC-FDMA symbols in a subframe—14 for normal cyclic prefix or 12 for extended cyclic prefix.

  • NTX is the number of transmission antenna planes.

Version History

Introduced in R2016b