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

    %% Recover VHT-SIG-B Using Zero-Forcing Equalizer  
% Recover the VHT-SIG-B using a zero-forcing equalizer in an AWGN channel
% having 160 MHz channel bandwidth, one space-time stream, and one receive
% antenna.

%% 
% Create a |wlanVHTConfig| object having a channel bandwidth of 160 MHz.
% Using the object, create a VHT-SIG-B waveform. 
cfg = wlanVHTConfig('ChannelBandwidth','CBW160');
[txSig,txBits] = wlanVHTSIGB(cfg);  

%% 
% Pass the transmitted VHT-SIG-B through an AWGN channel. 
awgnChan = comm.AWGNChannel('NoiseMethod','Variance','Variance',0.1);

rxSig = awgnChan(txSig);  

%% 
% Using |wlanRecoveryConfig|, set the equalization method to zero-forcing,
% |'ZF'|. 
cfgRec = wlanRecoveryConfig('EqualizationMethod','ZF');  

%% 
% Recover the VHT-SIG-B. Verify that the received information has no bit
% errors.
rxBits = wlanVHTSIGBRecover(rxSig,ones(484,1),0.1,'CBW160',cfgRec);
numErr = biterr(txBits,rxBits)