%% Generate NPBCH Symbols
% Generate NPBCH symbols using the master information block (MIB).
% Generate the MIB and pass it through broadcast channel (BCH) encoding to obtain the 1600-bit codeword.

mib = randi([0 1],34,1);
cw = lteBCH(mib,1600,1);

% Specify the cell-wide settings in the structure enb.

enb.NNCellID = 0;
enb.NBRefP = 1;
enb.NSubframe = 10;

% Generate the NPBCH symbols for each of the subframes.

sym = lteNPBCH(enb,cw);

% Copyright 2019 The MathWorks, Inc.