%% Build DMG PPDU
% Build DMG PPDUs by using the waveform generator function.
%
%% Waveform Generator
% Create an DMG configuration object.

dmg = wlanDMGConfig

%
% Generate the DMG PPDU. The length of the input data sequence in bits must be 8 times the length of the PSDU, which is expressed in bytes. Turn off windowing.

psdu = randi([0 1],dmg.PSDULength*8,1);
tx = wlanWaveformGenerator(psdu,dmg,'WindowTransitionTime',0);

%
% The waveform has MCS=0, which is single carrier and DBPSK modulated. Plot the constellation of the waveform.

scatterplot(tx)

% Copyright 2012 The MathWorks, Inc.