%% Recover SCI Message from Bit Vector
% Recover the contents of a format 0 SCI message bit vector.
% Create a UE settings structure.

ue = struct('NSLRB',50);

%
% Generate an SCI message structure.

[sci0,bits] = lteSCI(ue);
sci0

%
% Change the ModCoding setting to 22 and generate an SCI bits vector.

sci0.ModCoding = 22;
[~,bits_new] = lteSCI(ue,sci0);

%
% Use the new bits to recover the new SCI message. View the new SCI message structure and confirm that the ModCoding setting is now 22.

[sci0_new,~] = lteSCI(ue,bits_new)

% Copyright 2012 The MathWorks, Inc.