%% Encode UCI Message Bits
% Create a random sequence of binary values corresponding to a UCI message of 32 bits.

ucibits = randi([0 1],32,1,'int8');

% Encode the message for the specified rate-matched output length.

E = 120;
codeduci = nrUCIEncode(ucibits,E)

% Copyright 2018 The MathWorks, Inc.