%% 256QAM Mapping
% Perform a 256QAM mapping, as defined in IEEE®  802.11ac™-2013 Section 22.3.10.9.1.
%
% Create the sequence of data bits.

bits = randi([0 1],416,1,'int8');

%
% Perform the constellation mapping on the data bits with a 256QAM modulation.

numBPSCS = 8;
mappedData = wlanConstellationMap(bits,numBPSCS);

%
% The size of the output returned by this modulation equals the size of the input sequence divided by eight.
%

size(mappedData)

% Copyright 2012 The MathWorks, Inc.