%% Create Format 1 TDD DCI Message
% Create a format 1 DCI message structure with the resource allocation type 1 and TDD modulation scheme. Set AllocationType to 1, and output the set of allocation fields. AllocationType is the resource allocation header bit for format 1. Also initialize the ModCoding field at the input. All noninitialized fields default to 0.

enb.NDLRB = 50;
enb.CellRefP = 1;
enb.DuplexMode = 'TDD';

dciin.DCIFormat = 'Format1';
dciin.AllocationType = 1;
dciin.ModCoding = 7;

dci1 = lteDCI(enb,dciin)
allocfields = dci1.Allocation

% For the specified configuration, the Allocation substructure includes the character vector bit field, Bitmap, plus RBSubset and Shift fields.
% Copyright 2012 The MathWorks, Inc.