📄 tdl.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -