%% Generate NPDSCH RE Indices
% Generate the NPDSCH RE 0-based indices mapping in linear index form for two antennas.
%
% Create the eNodeB structure cell-wide settings for two antennas.

enb.NNCellID = 10;
enb.NBRefP = 2;
enb.OperationMode = 'Standalone';

%
% Create the channel transmission configuration.

chs.NPDSCHDataType = 'SIB1NB';

%
% Generate the 0-based NPDSCH RE indices in linear index form. The indices matrix has two columns, one for each antenna ports. Display the first seven indices.

ind = lteNPDSCHIndices(enb,chs,{'0based','ind'});
ind(1:7,:)

% Copyright 2012 The MathWorks, Inc.