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

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

% Using pi/2-BPSK modulation, generate PUCCH format 4 modulation symbols of single data type for the specified scrambling identity, RNTI, spreading factor, and orthogonal cover code index.

modulation = 'pi/2-BPSK';
nid = 285;
rnti = 897;
sf = 4;
occi = 3;
sym = nrPUCCH4(uciCW,modulation,nid,rnti,sf,occi,'OutputDataType','single')

% Copyright 2018 The MathWorks, Inc.