%% Generate PUCCH Format 1 DM-RS for Two Antennas
% Generate the PUCCH format 1 DM-RS for two transmit antenna paths.
% Initialize UE-specific and channel configuration structures. Generate PUCCH1 DM-RS and information outputs.

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

chs.ResourceIdx = [0 3];
chs.DeltaShift = 1;
chs.CyclicShifts = 0;

[drsSeq,info] = ltePUCCH1DRS(ue,chs);

%
% Because there are two antennas, the DM-RS sequences are output as a two-column vector and the info output structure contains two elements. View ind and the size of info to confirm this.

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

%
% View the contents of the two info structure elements.

info(1)
info(2)

% Copyright 2012 The MathWorks, Inc.