%% Encode Format 0 SCI Message of Specified Length
% Create an SCI format 0 message structure, and generate the new SCI message and payload bits. Encode the SCI message payload bits in a codeword of length specified by outlen.
% Create a UE settings structure and SCI message structure.

ue = struct('NSLRB',50,'CyclicPrefixSL','Extended');
[sci0,scibits] = lteSCI(ue);

%
% Generate an encoded SCI message codeword of length specified by outlen.

outlen = 144;
cw = lteSCIEncode(ue,scibits,outlen);
size(cw)

% Copyright 2012 The MathWorks, Inc.