%% Encode DCI with Zero RNTI
% Perform DCI processing on an all-zero input. This processing results in an all-zero output when you set RNTI to 0.
% Generate a dcibits input vector with zeros for a DCI format 1 message. enb is defined with 50 downlink RBs, 1 cell-specific reference signal antenna port, and FDD duplex mode.

enb = struct('NDLRB',50,'CellRefP',1,'DuplexMode','FDD');
dciInfo = lteDCIInfo(enb);
dcibits = zeros(dciInfo.Format1,1);

%
% Define a ue parameter structure with PDCCH format 1 and RNTI set to 0.

ue = struct('PDCCHFormat',1,'RNTI',0);

%
% Encode the DCI bits.

cw = lteDCIEncode(ue,dcibits);
cw(1:5)

% For PDCCH format 1, the output vector length is 144. For this example, the output is an all-zero vector because the DCI bits were 0 and RNTI was set to 0.
% Copyright 2012 The MathWorks, Inc.