%% Extract VHT-SIG-A Bandwidth Information
% Generate the VHT-SIG-A waveform for a 40 MHz transmission packet.
% Create a VHT configuration object, and assign a 40 MHz channel bandwidth.

cfgVHT = wlanVHTConfig;
cfgVHT.ChannelBandwidth = 'CBW40';

%
% Generate the VHT-SIG-A waveform and information bits.

[y,bits] = wlanVHTSIGA(cfgVHT);

%
% Extract the bandwidth from the returned bits and analyze. The bandwidth information is contained in the first two bits.

bwBits = bits(1:2);
bi2de(bwBits)

% As defined in IEEE Std 802.11ac-2013, Table 22-12, a value of '1' corresponds to 40 MHz bandwidth.
% Copyright 2012 The MathWorks, Inc.