tdl.m

来自「JAKES 模型的具体实现,应用瑞利衰落信道的特性」· M 代码 · 共 32 行

M
32
字号
% genorate the impulse respose for the time variant Channel;
% 4 path

function[h]=TDL(Fd,N)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% sgma is the Tap Weight of each Delay channle %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Fd = Fd;
sgma1=1;
sgma2=0.3679;
sgma3=0.1353;
sgma4=0.0498;
NormSgma=sqrt(sgma1^2+sgma2^2+sgma3^2+sgma4^2);

sgma1 = sgma1/NormSgma;
sgma2 = sgma2/NormSgma;
sgma3 = sgma3/NormSgma;
sgma4 = sgma4/NormSgma;


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
g=Gain(Fd,N)';	  	    %% produce a raleigh distribution array
size(g)
h(:,[1])=sgma1*g;	%% get the first tap Gain;
g=Gain(Fd,N)';   		%% reproduce a raleigh distribution array
h(:,[2])=sgma2*g;	%% get the 2nd tap Gain;
g=Gain(Fd,N)';  	 	%% reproduce a raleigh distribution array
h(:,[3])=sgma3*g;	%% get the 3thd tap Gain;
g=Gain(Fd,N)';   		%% reproduce a raleigh distribution array
h(:,[4])=sgma4*g;	%% get the last tap Gain;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?