%% Encode CQI Bits for One Codeword
% Generate the coded CQI bits for a single codeword.
% Create input stream and initialize channel settings structure. Encode CQI bits.

in = [0; 1; 0; 1; 0; 1];
chs1.Modulation = '16QAM';
chs1.QdCQI = 4;
chs1.NLayers = 2;

%

codedCqi1 = lteCQIEncode(chs1,in)

% Copyright 2012 The MathWorks, Inc.