%% Generate PUCCH Format 2 Modulation Symbols of Nondefault Data Type
% 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 of single data type for the specified scrambling identity and RNTI.

nid = 512;
rnti = 2563;
sym = nrPUCCH2(uciCW,nid,rnti,'OutputDataType','single')

% Copyright 2018 The MathWorks, Inc.