How to generate Rayleigh fading values in matlab???
3 次查看(过去 30 天)
显示 更早的评论
- tag0 = 0;
- sco = [1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0];
- out0 = xor(tag0,sco);
- tag1 = 1;
- sc1 = [1 1 0 0 0 0 1 1 0 0 1 1 1 1 0 0];
- out1 = xor(tag1,sc1);
- tag2 = 1;
- sc2 = [1 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0];
- out2 = xor(tag2,sc2);
- I want to generate rayleigh fading values after this point how do i generate that??
- Also, I was reading article online which had the syntax mentioned below:
- rayChan = comm.RayleighChannel('SampleRate', 10000, 'MaximumDopplerShift', 100)
- sig = j*ones(2000,1);
- rayChan
- rayChan =
- comm.RayleighChannel with properties:
- SampleRate: 10000
- PathDelays: 0
- AveragePathGains: 0
- NormalizePathGains: true
- MaximumDopplerShift: 100
- DopplerSpectrum: [1×1 struct]
I am not understanding the significance of this code in this siutation. I know further if i plot this it will be me power level signal versus sample number but, I am not sure if this is what I am looking for.
Kindly help me in this situation
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Propagation and Channel Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!