%% Generate PUCCH Format 3 Pi/2-BPSK Modulation Symbols
% Create a random sequence of binary values corresponding to a UCI codeword of 96 bits.

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

% Using pi/2-BPSK modulation, generate PUCCH Format 3 modulation symbols of single data type for the specified scrambling identity, RNTI, and allocated bandwidth of two resource blocks.

modulation = 'pi/2-BPSK';
nid = 512;
rnti = 2563;
mrb = 2;
sym = nrPUCCH3(uciCW,modulation,nid,rnti,mrb,'OutputDataType','single')

% Copyright 2018 The MathWorks, Inc.