%% Decode UCI Bits
% Decode UCI bits representing RI=3 using N=2 bits. According to TS 36.212, Table 5.2.2.6-6 this maps to the set of input bits [1;0].

cw = lteUCIEncode([1;0])
softBits = double(cw)/sqrt(2);
decodedUciBits = lteUCIDecode(softBits, 2)

% The decoded UCI bits match the input bits.
% Copyright 2012 The MathWorks, Inc.