%% Segment-Deparse Symbols
% Segment-deparse the symbols in four OFDM symbols for a VHT configuration with a channel bandwidth of 16 MHz and 3 spatial streams.
% Define the input parameters. Since the channel bandwidth is 16 MHz, set the number of data subcarriers to 468 and the number of frequency segments to two.

chanBW = 'CBW16';
numSD = 468; 
numSym = 4;
numSS = 3;
numSeg = 2;

% Create the input sequence of symbols.

data = randi([0 1],numSD/numSeg,numSym,numSS,numSeg);

% Segment-deparse the symbols into data subcarriers. The first dimension of the parsed output accounts for the total number of data subcarriers.

deparsedData = wlanSegmentDeparseSymbols(data,chanBW);
size(deparsedData)

%
% Copyright 2012 The MathWorks, Inc.