rayleigh信道matlab实现
function = reyleigh(fd,t)%REYLEIGH 此处显示有关此函数的摘要
% 此处显示详细说明
N=40;
N0=N/4;
Tc = zeros(1,length(t));
Ts = zeros(1,length(t));
P_nor = sqrt(1/N0);
theta = 2*pi*rand(1,1)-pi;
for ii=1:N0
alfa(ii)=(2*pi*ii-pi+theta)/N;
fi_tc = 2*pi*(rand(1,1)-1/2);
fi_ts = 2*pi*rand(1,1)-pi;
Tc = Tc+cos(cos(alfa(ii))*2*pi*fd*t+fi_tc);
Ts = Ts+cos(sin(alfa(ii))*2*pi*fd*t+fi_ts);
end
h = P_nor*(Tc+j*Ts);
页:
[1]