%% BPSK Mapping for VHT-SIG-A field
% Perform BPSK mapping of OFDM symbols for the VHT-SIG-A field.
% Create the sequence of data bits. Place the two OFDM symbols in columns.

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

% Perform constellation mapping on the data bits. Specify the size of constellation rotation phase as the number of columns in the input sequence.

numBPSCS = 1;
phase = [0 pi/2];
y = wlanConstellationMap(bits,numBPSCS,phase);

% Display the modulated signal constellation.

scatterplot(y(:,1))
scatterplot(y(:,2))

% Copyright 2012 The MathWorks, Inc.