%% Generate PUCCH Format 1 DM-RS Indices for Two Antennas Varying Indexing Style
% Generate the PUCCH format 1 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 PUCCH1 DM-RS indices and information outputs.

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

chs.ResourceIdx = [0 4];
chs.ResourceSize = 0;
chs.DeltaShift = 1;
chs.CyclicShifts = 0;

opts = {'sub'};

[ind,info] = ltePUCCH1DRSIndices(ue,chs,opts);

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

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

info(1)

% Copyright 2012 The MathWorks, Inc.