www.gusucode.com > wlan 源码程序 matlab案例代码 > wlan/GenerateAVHTWaveformExample.m

    %% Generate VHT Waveform
% Generate a time-domain signal for an 802.11ac VHT transmission with one
% packet.
%%
% Create the format configuration object, |vht|. Assign two transmit
% antennas and two spatial streams, and disable STBC. Set the MCS 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|.
vht = wlanVHTConfig;
vht.NumTransmitAntennas = 2;
vht.NumSpaceTimeStreams = 2;
vht.STBC = false;
vht.MCS = 1;
vht.APEPLength = 1024;
%%
% Generate the transmission waveform.
bits = [1;0;0;1];
txWaveform = wlanWaveformGenerator(bits,vht);