%% Generate PUCCH Format 2 DM-RS Indices for Four Antennas
% Generate the PUCCH format 2 DM-RS indices for four transmit antenna paths, and display the output information structure.
% Initialize UE-specific and channel configuration structures. Generate PUCCH 2 DM-RS indices and information outputs.

ue.NULRB = 6;
ue.CyclicPrefixUL = 'Normal';

chs.ResourceIdx = [0 37 4 111];

[ind,info] = ltePUCCH2DRSIndices(ue,chs);

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

ind(1:6,:)
size(info)

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

info(4)

% Copyright 2012 The MathWorks, Inc.