%% Generate PUSCH Scrambling Sequence
% Generate the first 300 elements of the PUSCH scrambling sequence when initialized with the specified physical layer cell identity number and RNTI.

ncellid = 17;
rnti = 120;
n = 300;
seq = nrPUSCHPRBS(ncellid,rnti,n)

% Copyright 2018 The MathWorks, Inc.