%% Plot Decoded PSCCH Symbols
% Decode PSCCH symbols that contain a fully encoded SCI format 0 message with noise added. After PSCCH demodulation, plot the intermediate QPSK modulated symbols.
% Create UE settings and SCI message configuration structures. Generate a PSCCH transmission. Add noise to the symbols.

ue = struct('NSLRB',50,'CyclicPrefixSL','Normal');
sci0 = struct('FreqHopping',1,'ModCoding',3);

[sci0,scibits] = lteSCI(ue,sci0);
cw = lteSCIEncode(ue,scibits);
sym = ltePSCCH(cw);

rxsym = sym + 0.1*randn(size(sym));

%
% Decode the PSCCH symbols and plot the output intermediate QPSK modulated symbols.

[rxsoftbits,symbols] = ltePSCCHDecode(rxsym);
plot(symbols,'o')

% Copyright 2012 The MathWorks, Inc.