%% Get Symbol Order for a VHT Configuration
% Get the symbol order after stream deparsing a sequence for a VHT configuration with a channel bandwidth of 160 MHz and one spatial stream.
%
% Define the input parameters. Since the channel bandwidth is 160 MHz, set the number of data subcarriers to 468 and the number of frequency segments to two.

chanBW = 'CBW160';
numSD = 468;  
numSym = 1;
numSS = 1;
numSeg = 2; 

%
% Create the input sequence of symbols.

sequence = (1:numSD*numSym*numSS).';
inp = reshape(sequence, numSD/numSeg, numSym, numSS, numSeg);

%
% Segment-deparse the symbols. The output is a column vector with the sequence order of the symbols.

deparsedData = wlanSegmentDeparseSymbols(inp, chanBW);
deparsedData(1:10)

% Copyright 2012 The MathWorks, Inc.