V
vijayendra_desai
Guest
Script% per calcolare il miglioramento SNR in
Canale% Rayleigh fading con la diversità di selezione
chiaro
N = 10 ^ 4;% il numero di bit o simboli
Trasmettitore%
rand = IP (1, N)> 0.5; generare 0,1% con una probabilità pari
s = 2 * ip-1;% modulazione BPSK 0 -> -1; 1 -> 0
NRX = [1:20];
Eb_N0_dB = [25]; valori% Eb/N0 più
per jj = 1: NRX (lunghezza)
per ii = 1: length (Eb_N0_dB)
n = 1/sqrt (2) * [randn (NRX (jj), N) j * randn (NRX (jj), N)];% di rumore bianco gaussiano, 0dB varianza
h = 1/sqrt (2) * [randn (NRX (jj), N) j * randn (NRX (jj), N)];% Rayleigh canale
Canale% e l'aggiunta di rumore acustico
sD = Kron (quelli (NRX (jj), 1), s);
y = h. * sd 10 ^ (-Eb_N0_dB (ii) / 20) * n;% Trovando la forza del canale su tutte le catene rx
hPower = h. * conj (h);
% Trovare la massima potenza
[ind hMaxVal] = max (hPower, [], 1);
= hMaxValMat Kron (quelli (NRX (jj), 1), hMaxVal);
% Selezionando la catena con la massima potenza
= ySel y (hPower == hMaxValMat);
hSel = h (hPower == hMaxValMat);
SNR% efficaci
EbN0EffSim (ii, jj) = mean (hSel. * conj (hSel));
EbN0EffThoery (ii, jj) = SUM (1. / [1: NRX (jj)]);
fine
fine
<img src="http://www.edaboard.com/images/smiles/icon_arrow.gif" alt="Arrow" border="0" />
non ho dubbi in questo programma /
1) Perché stessa equazione per il rumore AWGN e Ray-channel laigth.
2) Come possiamo trovare il potere con questa equazione: hPower = h. * conj (h);
please help me il più presto possibile.
Canale% Rayleigh fading con la diversità di selezione
chiaro
N = 10 ^ 4;% il numero di bit o simboli
Trasmettitore%
rand = IP (1, N)> 0.5; generare 0,1% con una probabilità pari
s = 2 * ip-1;% modulazione BPSK 0 -> -1; 1 -> 0
NRX = [1:20];
Eb_N0_dB = [25]; valori% Eb/N0 più
per jj = 1: NRX (lunghezza)
per ii = 1: length (Eb_N0_dB)
n = 1/sqrt (2) * [randn (NRX (jj), N) j * randn (NRX (jj), N)];% di rumore bianco gaussiano, 0dB varianza
h = 1/sqrt (2) * [randn (NRX (jj), N) j * randn (NRX (jj), N)];% Rayleigh canale
Canale% e l'aggiunta di rumore acustico
sD = Kron (quelli (NRX (jj), 1), s);
y = h. * sd 10 ^ (-Eb_N0_dB (ii) / 20) * n;% Trovando la forza del canale su tutte le catene rx
hPower = h. * conj (h);
% Trovare la massima potenza
[ind hMaxVal] = max (hPower, [], 1);
= hMaxValMat Kron (quelli (NRX (jj), 1), hMaxVal);
% Selezionando la catena con la massima potenza
= ySel y (hPower == hMaxValMat);
hSel = h (hPower == hMaxValMat);
SNR% efficaci
EbN0EffSim (ii, jj) = mean (hSel. * conj (hSel));
EbN0EffThoery (ii, jj) = SUM (1. / [1: NRX (jj)]);
fine
fine
<img src="http://www.edaboard.com/images/smiles/icon_arrow.gif" alt="Arrow" border="0" />
non ho dubbi in questo programma /
1) Perché stessa equazione per il rumore AWGN e Ray-channel laigth.
2) Come possiamo trovare il potere con questa equazione: hPower = h. * conj (h);
please help me il più presto possibile.