%% Generate PUCCH Format 2 DM-RS Indices Varying Indexing Style
% Generate the PUCCH format 2 DM-RS indices for two transmit antenna paths, and output in subscript indexing form.
% Initialize UE-specific and channel configuration structures and the indexing option parameter. Generate PUCCH 2 DM-RS indices and information outputs.

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

chs.ResourceIdx = [0 4];

[ind,info] = ltePUCCH2DRSIndices(ue,chs,{'sub'});

%
% Using 'sub' indexing style, the indices are output in [subcarrier, symbol, antenna] subscript form. View the midpoint of ind and observe the antenna index change.

size(ind)
ind(46:51,:)
size(info)

%
% Because there are two antennas, the info output structure contains two elements. View one of the info structure elements.

info(2)

% Copyright 2012 The MathWorks, Inc.