%% Encode UCI Message Bits for 16-QAM Modulation Scheme
% Create a random sequence of binary values corresponding to a two-bit UCI message.

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

% Encode the message for the specified rate-matched output length and 16-QAM modulation scheme.

E = 12;
codeduci = nrUCIEncode(ucibits,E,'16QAM')

% Copyright 2018 The MathWorks, Inc.