%% Interleave Non-HT Data Field
% Perform BCC interleaving for the non-HT interleaving type.
%
% Define the input parameters. Set the number of coded bits per OFDM symbol per spatial stream per interleaver block to 48.

numCBPSSI = 48;

%
% Create a sequence of random bits for one OFDM symbol, one spatial stream, and one segment.

inBits = randi([0 1],numCBPSSI,1);

%
% Perform BCC interleaving on the bits.

out = wlanBCCInterleave(inBits,'Non-HT',numCBPSSI);

%
% Compare the original sequence with the interleaved one.

[inBits out]

% Copyright 2012 The MathWorks, Inc.