How do I add AWGN noise to a RF Signal at the receiver ?

7 visualizzazioni (ultimi 30 giorni)
When we deal with the channel decoding, we add the awgn noise to the signal BPSK moduated signal "r" as
SNR_ratio = 10^(SNRdB / 10);
N0 = sqrt(1.0 / (2.0 * Rate * SNR_ratio));
r = r + N0*randn(size(r));
In the matlab example code for HARQ, the AWGN noise is added to the received Rf signal as below
  • SNR = 10^(SNRdB/10);
  • N0 = 1/sqrt(2.0*simLocal.NRxAnts*double(waveinfoLocal.Nfft)*SNR);
  • noise = N0*complex(randn(size(rxWaveform)),randn(size(rxWaveform)));
  • rxWaveform = rxWaveform + noise;
  1. So, How can we relate those two things ? In the matlab example code, N0 is calculated based on the SNR, NFFT and NRx antenna but do not care about the code rate. I would be so happy if someone explain it clearly.
  2. How can we calculate the Eb/No from the the demodulated/rxwaveform signal ?
Thank you.

Risposta accettata

vidyesh
vidyesh il 12 Apr 2024
Hi Narayan,
1.So, How can we relate those two things ? In the matlab example code, N0 is calculated based on the SNR, NFFT and NRx antenna but do not care about the code rate. I would be so happy if someone explain it clearly.
N0 calculation depends on your system and its implementation. You can ignore coding rate if you are using 'snr' or 'esno' and it may factor in if you are using 'ebno'. Refer to the below two pages for more details:
If you are considering a simple BPSK transmission, you can calculate 'N0' as . However, since the HARQ system is a complex one, we factor in the number of Receive antennas as well as the number of FFT points.
2.How can we calculate the Eb/No from the the demodulated/rxwaveform signal ?
Instead of calculating 'ebno' from the received waveform, you can use the awgn function to add noise, and specify the 'signalpower' parameter as 'measured' which ensures that "The signal level of X is computed to determine the noise level required to achieve the specified SNR".
For more information on using the awgn function, see:
Hope this helps.

Più risposte (0)

Categorie

Scopri di più su Propagation and Channel Models in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by