%% Get Bit Order After Stream Parsing
% Get the bit order of an OFDM symbol after stream-parsing it from one encoded stream into three spatial streams.
%
% Define the input parameters. Set the number of coded bits per OFDM symbol to 156, the number of coded bits per subcarrier per spatial stream to 1, the number of encoded streams to 1, the number of spatial streams to 3 and the number of OFDM symbols to 1.

numCBPS = 156;
numBPSCS = 1;
numES = 1;
numSS = 3;
numSym = 1;

%
% Create an input sequence of ordered symbols with the proper dimensions.

sequence = (1:numCBPS*numSym).';
inp = reshape(sequence,numCBPS*numSym/numES,numES)

%
% Stream-parse the symbols.

parsedData = wlanStreamParse(inp,numSS,numCBPS,numBPSCS)

% Copyright 2012 The MathWorks, Inc.