%% Interleave VHT Data Field
% Perform BCC interleaving for the VHT interleaving type.
% Define the input parameters. Set the number of coded bits per OFDM symbol per spatial stream per interleaver block to 52, the channel bandwidth to 20 MHz, and the number of spatial streams to 4.

numCBPSSI = 52;
cbw = 'CBW20';
numSS = 4;

% Create a sequence of bits for two OFDM symbols, four spatial streams, and one segment.

inBits = randi([0 1],2*numCBPSSI,numSS,1,'int8');

%
% Perform BCC interleaving on the bits.

out = wlanBCCInterleave(inBits,'VHT',numCBPSSI,cbw);

% Copyright 2012 The MathWorks, Inc.