%% Generate SCI Message on PSCCH
% Create a codeword using an encoded SCI message payload and process the bits on the PSCCH.
% Create a UE settings structure and use it to generate SCI message bits. Produce an encoded SCI message codeword.

ue = struct('NSLRB',50,'CyclicPrefixSL','Normal');
[~,scibits] = lteSCI(ue);

cw = lteSCIEncode(ue,scibits);

%
% Generate PSCCH symbols. View the length of the symbol column vector. Plot the constellation to show the effect of the SC-FDMA precoding on the modulation symbols.

symbols = ltePSCCH(cw);
numSymbols = size(symbols)
plot(symbols,'o')

% Copyright 2012 The MathWorks, Inc.