%% Stream-Deparse Input Bits
% Stream-deparse five OFDM symbols with two spatial streams into one encoded stream.
%
% Define the input parameters. Set the number of coded bits per OFDM symbol to 432, the number of coded bits per subcarrier per spatial stream to 2, the number of encoded streams to 1, the number of spatial streams to 2 and the number of OFDM symbols to 5.

numCBPS = 432;
numBPSCS = 2;
numES = 1;
numSS = 2;
numSym = 5;

%
% Create a parsed input of hard bits.

parsed = randi([0 1],numCBPS/numSS*numSym,numSS)

%
% Stream-deparse the bits.

deparsed = wlanStreamDeparse(parsed,numES,numCBPS,numBPSCS)

% Copyright 2012 The MathWorks, Inc.