www.gusucode.com > wlan 源码程序 matlab案例代码 > wlan/RecoverHTDataFieldSignalusingZeroForcingAlgorithmExample.m
%% Recover HT-Data Field Signal Using Zero-Forcing Algorithm %% % Create an HT configuration object having a 40 MHz channel bandwidth and % a 1024-byte PSDU length. Generate the corresponding HT-Data sequence. cfgHT = wlanHTConfig('ChannelBandwidth','CBW40','PSDULength',1024); txBits = randi([0 1],8*cfgHT.PSDULength,1); txHTSig = wlanHTData(txBits, cfgHT); %% % Pass the signal through an AWGN channel with a signal-to-noise ratio of 7 % dB. rxHTSig = awgn(txHTSig,7); %% % Create a data recovery object that specifies the use of the zero-forcing % algorithm. cfgRec = wlanRecoveryConfig('EqualizationMethod','ZF'); %% % Recover the data and determine the number of bit errors. Because fading % was not introduced, the channel estimate is set to a vector of ones whose % length is equal to the number of occupied subcarriers. rxBits = wlanHTDataRecover(rxHTSig,ones(114,1),0.2,cfgHT,cfgRec); [numerr,ber] = biterr(rxBits,txBits)