%% Perform PUSCH Scrambling
% Create a random sequence of binary values corresponding to a codeword containing 5000 bits.

cw = randi([0 1],5000,1)

% Perform PUSCH scrambling initialized with the specified physical layer cell identity number and RNTI.

ncellid = 42;
rnti = 101;
scrambled = nrPUSCHScramble(cw,ncellid,rnti)

% Copyright 2018 The MathWorks, Inc.