urgent matlab help confuse.....

Status
Not open for further replies.

matlab1983

Member level 2
Joined
Nov 3, 2008
Messages
52
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,549
simple question >>>


when we model Rayleigh channel


we use in matlab this command

h = 1/sqrt(2)*[randn(nRx(jj),N) + j*randn(nRx(jj),N)]; % Rayleigh channel

also we can use the distribution of Rayleigh channel which is very known

p(gama)=(1/gama_ave).*esp(-gama/gama_ave);

so what is relation between two commands ?

thanks
 

You have said it urself...the 1st command gives u the channel impulse response (A RANDOM VARIABLE), whereas the other command resturns the DISTRIBUTION itself...i use the following code to generate the channel:

%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;


hope it helps
 

thanks for replay

i know that the magnitude of first command gives Rayleigh channel, but my question :

if we add all Rayleigh channel we get chi-square right ?

this assumption with i.i.d channel , but with i.n.d what is the distribution ?

thanks for all
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…