MATLAB Examples

Dimension Information Related to Duplexing

This example shows how to extract information from a parameter structure. To facilitate working with different duplexing arrangements, the LTE System Toolbox™ product provides the lteDuplexingInfo information function. This function takes a cell-wide settings structure containing the fields mentioned in the preceding sections. It returns a structure that indicates the type of the current subframe and the number of symbols in the current subframe.

First, create a parameter structure.

enb.NDLRB        = 9;
enb.NCellID      = 1;
enb.DuplexMode   = 'TDD';
enb.NSubframe    = 6;
enb.TDDConfig    = 2;
enb.SSC          = 4;
enb.CyclicPrefix = 'Extended';

Next, extract the dimension information.

lteDuplexingInfo(enb)
ans = 

  struct with fields:

     SubframeType: 'Special'
         NSymbols: 12
       NSymbolsDL: 3
    NSymbolsGuard: 7
       NSymbolsUL: 2

Finally, change the NSubframe property and extract the dimension information again.

enb.NSubframe    = 0;
lteDuplexingInfo(enb)
ans = 

  struct with fields:

     SubframeType: 'Downlink'
         NSymbols: 12
       NSymbolsDL: 12
    NSymbolsGuard: 0
       NSymbolsUL: 0

This function provides direct access to the uplink-downlink configuration patterns via the SubframeType field and special subframe DwPTS, GP and UpPTS lengths via the NSymbolsDL, NSymbolsGuard, and NSymbolsUL fields.