Thanks for reply but i can understand. can u give me example. taps mean paths.
lets I want to creat 4 paths and there power as well.
taps=4
delays[0 10 20 30];
pdb=[1 0.1 0.2 0.5];
signal= rand(1,100);
now how i added fadding.
Thanks and take care.
If you generate amplitudes for paths (or taps) directly - you won't get proper distribution.
Let's say you actually need 4-tap Rayleigh channel with variance 0.01 - it can be generated with:
for m=1:4
h(m)=sqrt(0.01/2)*randn+i*sqrt(0.01/2)*randn;
end;
And that's it. You can find on Wikipedia how random variable with Rayleigh distribution can be generated from two variables with normal distribution in quadrature - that's exactly our approach in given code.
hi
why u take variance 0.01 and how we pass signal through this channel, is just multiplying it or something else.
Please give me some detail.
Thanks and take care
bari
I took var. 0.01 only for example, you may use any value that you find to be appropriate for your simulation. To pass signal through this channel just use convolution of transmitted signal and channel impulse response created above. If you are using MATLAB, all you need is function "filter":
I have use the Matlab help browser for rayleighchan command to generate frequency selective Rayleigh fading channel. However, I wonder the chan.PathGains are the impulse response? If this is true, is the channel's frequency response found by this command: freq_response=fft(chan.PathGains)?
I am doing my thesis on MC-CDMA, and need Channel State Information matrix, which list all the subchannel gain corresponding to each user. Can you help me how to obtain this matrix?
Thanks in advance.