%% Generate NB-IoT DL-SCH Codeword Bits
% Generate 960 NB-IoT DL-SCH codeword bits with a transport block.
%
% Set the transport block length to 208 and the output codeword length to 960. Generate the transport block information bits as a random binary sequence.

trblklen = 208;
outlen = 960;
trblkin = randi([0 1],trblklen,1);

%
% Generate the 960 NB-IoT DL-SCH codeword bits given the transport block information bits and the output codeword length.

cw = lteNDLSCH(outlen,trblkin);

% Copyright 2012 The MathWorks, Inc.