%% 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 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)

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

enb.NSubframe    = 0;
lteDuplexingInfo(enb)

% 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.