%% Generate PUCCH Format 3 DM-RS for Two Antennas
% Generate the PUCCH format 3 DM-RS sequences for two transmit antenna paths. Display the information structure.
% Initialize UE-specific and channel configuration structures. Provide an empty vector for the ack, indicating there are no HARQ bits for this PUCCH transmission. Generate PUCCH 3 DM-RS and information outputs.

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

chs.ResourceIdx = [0 3];

ack = [];

[drsSeq,info] = ltePUCCH3DRS(ue,chs,ack);

%
% 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:6,:)
size(info)

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

info(1)
info(2)

% Copyright 2012 The MathWorks, Inc.