%% Generate VHT Waveform
% Generate a time-domain signal for an 802.11ac VHT transmission with one packet.
% Create a VHT configuration object. Assign two transmit antennas and two spatial streams, and disable space-time block coding (STBC). Set the modulaltion and coding scheme to 1, which assigns QPSK modulation and a 1/2 rate coding scheme per the 802.11 standard. Set the number of bytes in the A-MPDU pre-EOF padding, APEPLength, to 1024.

cfg = wlanVHTConfig('NumTransmitAntennas',2,'NumSpaceTimeStreams',2,'STBC',0,'MCS',1,'APEPLength',1024);

%
% Generate the transmit waveform.

bits = [1;0;0;1];
txWaveform = wlanWaveformGenerator(bits,cfg);

% Copyright 2012 The MathWorks, Inc.