Main Content

wlanLLTFNoiseEstimate

Noise estimation using L-LTF or S1G-LTF1

Since R2023a

Description

noiseEst = wlanLLTFNoiseEstimate(rxSym) estimates the mean noise power, in watts, using the demodulated OFDM symbols from the legacy long training field (L-LTF) or S1G long training field (S1G-LTF1). The function performs this estimate assuming a resistance of 1 ohm.

example

Examples

collapse all

Create a configuration object for a high-throughput packet. Set an initial signal-to-noise ratio of 10 dB.

cfg = wlanHTConfig;
snr = 10;

Extract the OFDM information of the L-LTF in the configuration. Change the signal-to-noise ratio to remove the noise contribution from the null subcarriers.

ofdmInfo = wlanHTOFDMInfo("L-LTF",cfg);
snrValue = snr-10*log10(ofdmInfo.FFTLength/ofdmInfo.NumTones);

Extract the field indices that correspond to the L-LTF.

indLLTF = wlanFieldIndices(cfg,"L-LTF");

Generate a time-domain waveform for the configuration.

tx = wlanWaveformGenerator([1;0;0;1],cfg);

Perform the noise estimate for 100 separate noise realizations.

noiseEst = zeros(1,100);
for i = 1:100
rx = awgn(tx,snrValue);
rxLLTF = rx(indLLTF(1):indLLTF(2));
rxSym = wlanLLTFDemodulate(rxLLTF,cfg);
noiseEst(i) = wlanLLTFNoiseEstimate(rxSym);
end

Display the average value of the noise estimate, in dB.

disp(10*log10(mean(noiseEst)))
  -10.0690

Input Arguments

collapse all

Demodulated L-LTF or S1G-LTF1 OFDM symbols, specified as an NST-by-2-by-NR array. NST is the number of occupied subcarriers. NR is the number of receive antennas. The two columns of the array correspond to demodulated L-LTF or S1G-LTF1 OFDM symbols.

Note

The function does not support noise estimation using the S1G-LTF1 field for the S1G 1 MHz mode.

Data Types: single | double
Complex Number Support: Yes

Output Arguments

collapse all

Mean noise power estimate in watts, returned as a positive real scalar.

Data Types: single | double

More About

collapse all

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2023a

See Also

Functions