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

    %% Extract PPDU Fields From VHT Waveform
% Extract the VHT-STF from a VHT waveform.
%%
% Create VHT configuration object for a MIMO transmission using a 160 MHz
% channel bandwidth. Generate the corresponding VHT waveform.
cfg = wlanVHTConfig('MCS',8,'ChannelBandwidth','CBW160','NumTransmitAntennas',2,'NumSpaceTimeStreams',2);
txSig = wlanWaveformGenerator([1;0;0;1],cfg);
%%
% Determine the component PPDU field indices for the VHT format.
ind = wlanFieldIndices(cfg)
%%
% The VHT PPDU waveform is comprised of eight fields, including seven
% preamble fields and one data field.
%%
% Extract the VHT-STF from the transmitted waveform.
stf = txSig(ind.VHTSTF(1):ind.VHTSTF(2),:);
%%
% Verify that the VHT-STF has dimensions of 640-by-2 corresponding to the
% number of samples (80 for each 20 MHz bandwidth segment) and the number
% of transmit antennas.
size(stf)