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

    %% Recover HT-SIG Using Zero-Forcing Equalizer  
%% 
% Create a |wlanHTConfig| object having a channel bandwidth of 40 MHz.
% Use the object to create an HT-SIG field.
cfg = wlanHTConfig('ChannelBandwidth','CBW40');
[txSig,txBits] = wlanHTSIG(cfg);  

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

rxSig = awgnChan(txSig);  

%% 
% Use a zero-forcing equalizer by creating a |wlanRecoveryConfig| object
% with its |EqualizationMethod| property set to |'ZF'|.
cfgRec = wlanRecoveryConfig('EqualizationMethod','ZF');  

%% 
% Recover the HT-SIG field. Verify that the received information has no bit
% errors.
rxBits = wlanHTSIGRecover(rxSig,ones(104,1),0.1,'CBW40',cfgRec);
biterr(txBits,rxBits)