%% 4096-QAM Demapping
% Perform a 4096-QAM demapping on a sequence of data bits.
% Create the sequence of data bits.

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

% Perform constellation mapping on the data bits by using 4096-QAM.

numBPSCS = 12;
sym = wlanConstellationMap(bits,numBPSCS);
size(sym)

% Perform 4096-QAM constellation demapping. Because the default demapping type is soft, the output is a vector of soft bits.

noiseVarEst = 0;
y = wlanConstellationDemap(sym,noiseVarEst,numBPSCS);
size(y)

% Copyright 2012 The MathWorks, Inc.