channelcorr.m
来自「可用于3G/B3G系统当中的快衰信道的jakes模型的matlab仿真 作者已经」· M 代码 · 共 21 行
M
21 行
% This function generates pulse response of channel
% Jakes model
% ll represent the number of path
% t is time.
% fd=115
function f=channelcorr(fd,t,ll)
s=35;
rand('state',ll);
h1=0;
h2=0;
for k=1:s-1
sita(k)=2*pi*rand;
h1=h1+sqrt(2)/sqrt(s-1/2)*cos(pi*k/(s-1))*cos(2*pi*fd*cos(pi*k/(2*s-1))*t+sita(k));
h2=h2+sqrt(2)/sqrt(s-1/2)*sin(pi*k/(s-1))*cos(2*pi*fd*cos(pi*k/(2*s-1))*t+sita(k));
end
sita(s)=rand;
h1=h1+1/(sqrt(2)*sqrt(s-1/2))*cos(2*pi*fd*t+sita(s));
h2=h2+1/(sqrt(2)*sqrt(s-1/2))*cos(2*pi*fd*t+sita(s));
f(1,1)=h1+j*h2;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?