%% Encode DCI Message Bits
% Create a random sequence of binary values corresponding to a DCI message of 32 bits.

dcibits = randi([0 1],32,1);

% Encode the message for the specified RNTI and rate-matched output length.

rnti = 100; 
E = 240;
dcicw = nrDCIEncode(dcibits,rnti,E)

% Copyright 2018 The MathWorks, Inc.