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

enb.NNCellID = 10;
enb.NBRefP = 2;

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

[ind,info] = lteNPBCHIndices(enb,{'0based', 'ind'});
ind(1:10,:)

% Display the fields contained in the info structure.

info.G
info.Gd

% Copyright 2019 The MathWorks, Inc.