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

    %% Recover Non-HT Data Bits  

%% 
% Create a non-HT configuration object having a PSDU length of 2048 bytes.
% Generate the corresponding data sequence.
cfg = wlanNonHTConfig('PSDULength',2048);
txBits = randi([0 1],8*cfg.PSDULength,1);
txSig = wlanNonHTData(txBits,cfg);  

%% 
% Pass the signal through an AWGN channel with a signal-to-noise ratio of
% 15 dB. 
rxSig = awgn(txSig,15);  

%% 
% Recover the data and determine the number of bit errors. 
rxBits = wlanNonHTDataRecover(rxSig,ones(52,1),0.05,cfg);
[numerr,ber] = biterr(rxBits,txBits)