%% Generate PUCCH Format 3 QPSK Modulation Symbols
% Create a random sequence of binary values corresponding to a UCI codeword of 96 bits.

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

% Using QPSK modulation, generate PUCCH format 3 modulation symbols for the specified scrambling identity, RNTI, and allocated bandwidth of two resource blocks.

modulation = 'QPSK';
nid = 148;
rnti = 160;
Mrb = 2;
sym = nrPUCCH3(uciCW,modulation,nid,rnti,Mrb)

% Copyright 2018 The MathWorks, Inc.