%% Create DCI
% Create a format 1A DCI message structure with the distributed VRB allocation type. The allocation message fields are contained in the dci1A.Allocation substructure. When the format 1A AllocationType field is properly initialized at the input to the function, the appropriate set of fields is output. For format 1A, setting AllocationType to 1 gives a distributed allocation and 0 gives a localized allocation.

enb = struct('NDLRB',50,'CellRefP',1,'DuplexMode','FDD');
dciin = struct('DCIFormat','Format1A','AllocationType',1);
dci1A = lteDCI(enb,dciin)

allocfields = dci1A.Allocation

%
% The field values of this structure can be set and passed back through the function. Output the information bits with the new values.

dci1A.RV = 1;
dci1A.Allocation.RIV = 6;
dci1Aupdated = lteDCI(enb,dci1A)

allocfields = dci1Aupdated.Allocation

% Copyright 2012 The MathWorks, Inc.