%% Generate PDCCH Modulation Symbols Using NcellID for Scrambling
% Specify a random sequence of binary values corresponding to a DCI codeword of 560 bits. Generate PDCCH modulation symbols by setting the scrambling identity to the physical layer cell identity (NcellID).

dcicw = randi([0 1],560,1);     
nid = 123;                    % NcellID (0 to 1007)
nrnti = 0;  
sym = nrPDCCH(dcicw,nid,nrnti)

% Copyright 2018 The MathWorks, Inc.