www.gusucode.com > wlan 源码程序 matlab案例代码 > wlan/RecoverVHTSIGBInformationBitsExample.m
%% Recover VHT-SIG-B Information Bits % Recover VHT-SIG-B bits in a perfect channel having 80 MHz channel % bandwidth, one space-time stream, and one receive antenna. %% % Create a |wlanVHTConfig| object having a channel bandwidth of 80 MHz. % Using the object, create a VHT-SIG-B waveform. cfg = wlanVHTConfig('ChannelBandwidth','CBW80'); [txSig,txBits] = wlanVHTSIGB(cfg); %% % For a channel bandwidth of 80 MHz, there are 242 occupied subcarriers. % The channel estimate array dimensions for this example must be % [Nst,Nsts,Nr] = [242,1,1]. The example assumes a perfect channel and one % receive antenna. Therefore, specify the channel estimate as a % column vector of ones and the noise variance estimate as zero. chEst = ones(242,1); noiseVarEst = 0; %% % Recover the VHT-SIG-B. Verify that the received information bits are % identical to the transmitted bits. rxBits = wlanVHTSIGBRecover(txSig,chEst,noiseVarEst,'CBW80'); isequal(txBits,rxBits)