%% Generate PDCCH Modulation Symbols Using DMRS Scrambling Identity
% Specify a random sequence of binary values corresponding to a DCI codeword of 560 bits. Generate modulation symbols by scrambling with the PDCCH demodulation reference signal (DMRS) scrambling identity.

dcicw = randi([0 1],560,1);     
nid = 2^11;                   % pdcch-DMRS-ScramblingID
nrnti = 123;                  % C-RNTI
sym = nrPDCCH(dcicw,nid,nrnti)

% Copyright 2018 The MathWorks, Inc.