%% Optional DCI Message Views
% Create a format 1 DCI message structure and supply the optional 'fieldsizes' and 'excludeunusedfields' inputs. By default, the output structure contains all possible fields for the input format. Not all fields are active for the given input parameters. Specifically, some might not be present in the payload bits. To see the number of bits associated with each field, use the optional 'fieldsizes' input. The 'fieldsizes' option also adds the 'Padding' field to the output indicating the number of padding bits.

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

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

opts = {'fieldsizes'}

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

% View the output to see the sizes for all DCI message fields.
%
% Remove unused (0 bit) fields from the output structure by using the 'excludeunusedfields' option.

opts = {'fieldsizes','excludeunusedfields'}

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

% The output fields with bit length equal to zero bits no longer appear in the output.
% Copyright 2012 The MathWorks, Inc.