%% Generate PDSCH Scrambling Sequence
% Generate the first 300 outputs of the PDSCH scrambling sequence when initialized with the specified physical layer cell identity number, RNTI, and codeword number.

 ncellid = 17;
 rnti = 120;
 q = 0;
 n = 300;
 seq = nrPDSCHPRBS(ncellid,rnti,q,n)

% Copyright 2018 The MathWorks, Inc.