%% Create DCI Message Using UE-Specific Control
% Use an additional UE-specific input parameter structure to control UE-specific DCI fields. Create a message to be sent on the EPDCCH that is intended for a UE configured with the carrier indicator field, CIF.
% Initialize cell-wide structure enb, DCI format structure dciin, UE-specific structure chs, and output options structure opts.

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

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

chs.ControlChannelType = 'EPDCCH';
chs.EnableCarrierIndication = 'On';
chs.EnableSRSRequest = 'Off';
chs.EnableMultipleCSIRequest = 'Off';

opts = {'fieldsizes','excludeunusedfields'}

%
% Create and view the DCI message.

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

% Based on the UE-specific settings in chs, the output includes the three bit CIF field and the two bit HARQACKResOffset field. If these fields were present in dciin, their values would be mapped into the appropriate positions in the information bits at the output.
% Copyright 2012 The MathWorks, Inc.