Rayleigh Fading Channl

Status
Not open for further replies.

jilly0124

Newbie level 5
Joined
Dec 2, 2011
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,337
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
 

use rayleighchan() MATLAB function directly.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…