%% Generate PUCCH Format 2 Modulation Symbols
% Create a random sequence of binary values corresponding to a UCI codeword of 100 bits.

uciCW = randi([0 1],100,1);

% Generate PUCCH format 2 modulation symbols for the specified scrambling identity and RNTI.

nid = 148;
rnti = 160;
sym = nrPUCCH2(uciCW,nid,rnti)

% Copyright 2018 The MathWorks, Inc.