%% Decode PUCCH Format 1B Symbols
% Decoding of a PUCCH Format 1b received symbol vector pucch1Sym.
% Initialize a UE-specific configuration structure (ue), channel configuration structure (chs) and ACK vector (txAck)

ue.NCellID = 0;
ue.NSubframe = 0;
ue.CyclicPrefixUL = 'Normal';
ue.Hopping = 'Off';
ue.Shortened = 0;

chs.DeltaShift = 1;
chs.ResourceIdx = 0;
chs.CyclicShifts = 0; 

txAck = [0;1];

%
% Generate PUCCH symbols. Then decode the symbols and verify that the Rx ACK vector matches the Tx ACK vector.

pucch1Sym = ltePUCCH1(ue,chs,txAck);

rxAck = ltePUCCH1Decode(ue,chs,length(txAck),pucch1Sym)

% Copyright 2012 The MathWorks, Inc.