-
大小: 1KB文件类型: .rar金币: 1下载: 0 次发布日期: 2021-01-05
- 语言: 其他
- 标签: rayleigh fading simulation
资源简介
用于rayleigh fading 信道的仿真代码
代码片段和文件信息
function [h]=rayleighFading(MNfdTs)
% function to generate rayleigh Fading samples based on Clarke‘s model
% M = number of multipaths in the channel
% N = number of samples to generate
% fd = maximum Doppler frequency
% Ts = sampling period
% Author : athuranathan viswanathan for http://gaussianwaves.blogspot.com
% Creative commons License : CC-BY-NC-SA
a=0;
b=2*pi;
alpha=a+(b-a)*rand(1M); %uniformly distributed from 0 to 2 pi
beta=a+(b-a)*rand(1M); %uniformly distributed from 0 to 2 pi
theta=a+(b-a)*rand(1M); %uniformly distributed from 0 to 2 pi
m=1:M;
for n=1:N;
x=cos(((2.*m-1)*pi+theta)/(4*M));
h_re(n)=1/sqrt(M)*sum(cos(2*pi*fd*x*n‘*Ts+alpha));
h_im(n)=1/sqrt(M)*sum(sin(2*pi*fd*x*n‘*Ts+beta));
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 819 2011-05-02 13:23 rayleighFading\rayleighFading.m
文件 1784 2011-05-02 13:50 rayleighFading\test_Rayleigh_fading.m
目录 0 2012-08-22 00:43 rayleighFading
----------- --------- ---------- ----- ----
2603 3
- 上一篇:r软件系统分析与设计心得.docx
- 下一篇:ch395网络芯片资料
评论
共有 条评论