📄 jakesmodel.m
字号:
function RayleighFade = JakesModel(v, fc, Tstart, Ts, Ns, N0, AvgFadePower)
% Construct the MIMO channel by Jake Model.
% the number of input and output of the MIMO channel is given in the Tstart matrix, in which the number of row is for the
% receive antennas, and the column for transmit antennas.
% v: velocity of the mobile station(km/h)
% fc: carrier frequency(Hz)
% Tstart: start time matrix(s)
% Ts: sample interval(s)
% Ns: sample number
% N0: number of sin generators
% AvgFadePower: fading power
Nr=size(Tstart,1); %接收天线个数
Nt=size(Tstart,2); %发送天线个数
lamda = 3e+08/fc; %lamda波长=波速/载频
fmax = v*1000/(3600*lamda); %最大多普勒频移fmax=v/lamda (v:m/s;lamda:m;)
t=Tstart+Ts*Ns; %取样点
sigma=sqrt(AvgFadePower/2);%由于功率的衰减,导致了包络大小的改变
N=4*N0+2;%NO为正弦发生器个数
n=1:N0; %n取正弦个数的其中之一
fi=fmax*[cos(2*pi*n/N) 1];%生成一个行向量,当n>=1&n<=NO时,fi=fmax*cos(2*pi*n/N);当n=NO+1时,fi=fmax
cc=[2*cos(pi*n/N0) 1];
cs=[2*sin(pi*n/N0) 1];
for ii=1:Nr
for jj=1:Nt
RayleighFade(ii,jj)=2*sigma/sqrt(N)*(cos(2*pi*fi*t(ii,jj))*(cc+j*cs)');
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -