%% Compare Pseudorandom Scrambling Sequences
% Compare the PBCH scrambling sequence generated using both generic and PBCH-specific pseudorandom binary sequence generators.
% Create a cell-wide configuration structure initialized to RMC R.0. Generate the first 25 bits of the pseudorandom binary sequence for physical layer cell identity, NCellID using ltePRBS and ltePBCHPRBS.

enb = lteRMCDL('R.0');
prbsSeq = ltePRBS(enb.NCellID, 25);
pbchPrbsSeq = ltePBCHPRBS(enb,25);
isequal(prbsSeq,pbchPrbsSeq)

% The generic pseudorandom binary scrambling sequence equals the PBCH-specific pseudorandom binary scrambling sequence.
% Copyright 2012 The MathWorks, Inc.