%% Segment Code Block
% Perform code block segmentation, providing two vectors with different lengths.
% Code block segmentation occurs if the input length is greater than 6144. Provide a vector of length 6144.

cbs1 = lteCodeBlockSegment(ones(6144,1))

% No segmentation occurs.
%
% Provide a vector of length 6145.

cbs2 = lteCodeBlockSegment(ones(6145,1))

% Segmentation occurs for input length greater than 6144.
% Copyright 2012 The MathWorks, Inc.