%% Scramble PSCCH Codeword
% Scramble a PSCCH codeword by generating the PSCCH pseudorandom binary sequence (PRBS) and applying an exclusive OR operation on the two sequences.
% Generate the required length of the PRBS and scramble the PSCCH codeword with the PRBS sequence using xor.

codeword = ones(288,1);
pscchPrbs = ltePSCCHPRBS(length(codeword));
scrambled = xor(pscchPrbs,codeword);

% Copyright 2012 The MathWorks, Inc.