davyzhu
Advanced Member level 1
- Joined
- May 23, 2004
- Messages
- 494
- Helped
- 5
- Reputation
- 10
- Reaction score
- 2
- Trophy points
- 1,298
- Location
- oriental
- Activity points
- 4,436
rayleigh fading matlab
Hi all,
I have got a Rayleigh Fading Channel Simulation code by Matlab.
The code list below:
% Rayleigh fading
a = sqrt(0.5)*( randn( 1, symbols_per_frame) + j*randn( 1, symbols_per_frame) );
% complex noise
noise = sqrt(variance)*( randn(1,symbols_per_frame) + j*randn(1,symbols_per_frame) );
% in all
code_fade = a.*code + noise;
Is the code right? If not right, how to modify it?
Best regards,
Davy
Hi all,
I have got a Rayleigh Fading Channel Simulation code by Matlab.
The code list below:
% Rayleigh fading
a = sqrt(0.5)*( randn( 1, symbols_per_frame) + j*randn( 1, symbols_per_frame) );
% complex noise
noise = sqrt(variance)*( randn(1,symbols_per_frame) + j*randn(1,symbols_per_frame) );
% in all
code_fade = a.*code + noise;
Is the code right? If not right, how to modify it?
Best regards,
Davy