%% Generate PUCCH Format 2 Symbols for Two Antennas
% Generate the physical uplink control channel (PUCCH) format 2 symbols for two transmit antenna paths.
% Initialize parameters for a UE-specific configuration structure and a channel configuration structure. Generate PUCCH 2 symbols and the information structure.

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

chs.ResourceIdx = [0 3];
chs.ResourceSize = 0;
chs.CyclicShifts = 0;

[pucch2Sym,info] = ltePUCCH2(ue,chs,[]);

%
% Because there are two antennas, the symbols are output as a two-column vector, and the info output structure contains two elements.

pucch2Sym(1:10,:)
size(info)

%
% View the contents of the second info structure element.

info(2)

% Copyright 2012 The MathWorks, Inc.