jilly0124
Newbie level 5
Hi all,
I have got a Rayleigh Fading Channel Simulation code by Matlab but its performance about resulting BER is not right.
The code list below:
N=length(spread_sig);
n = sigmaN*(randn(1,N)+1j*randn(1,N))/sqrt(2); % white gaussian noise, 0dB variance
h = 1/sqrt(2)*(randn(1,N) + 1j*randn(1,N));
% Rayleigh channel,the range of h submit to the Rayleigh distribution
% Channel and noise Noise addition
ch_spread_sig = h.*spread_sig + n;
where sigmaN=sqrt(N/EB_NO)
How to modify it?
Best regards
I have got a Rayleigh Fading Channel Simulation code by Matlab but its performance about resulting BER is not right.
The code list below:
N=length(spread_sig);
n = sigmaN*(randn(1,N)+1j*randn(1,N))/sqrt(2); % white gaussian noise, 0dB variance
h = 1/sqrt(2)*(randn(1,N) + 1j*randn(1,N));
% Rayleigh channel,the range of h submit to the Rayleigh distribution
% Channel and noise Noise addition
ch_spread_sig = h.*spread_sig + n;
where sigmaN=sqrt(N/EB_NO)
How to modify it?
Best regards