%% Encode RI Bits for Two Codewords
% Generate the coded rank indication (RI) bits for a two codewords on 3 layers.

riBit = 0;
chs.Modulation = {'64QAM' '64QAM'};
chs.QdRI = 1;
chs.NLayers = 3;

%

codedRi = lteRIEncode(chs,riBit)
codedRi{:}

% Copyright 2012 The MathWorks, Inc.