maximal_comb.m

来自「The result is an IS-95CDMA forward link 」· M 代码 · 共 34 行

M
34
字号
function combined =Maximal_comb(multipaths,option)

%This is maximo combining in the Rake Receiver
combined1 =zeros([1,12288]);

%we combine the best 3 signals in proportion
%one finger
if option==1
    tweight=0.5;
    combined1=combined1+(0.5/tweight)*multipaths(2).data;
end

%two fingers
if option==2
    tweight =0.5+0.6;
    combined1=combined1+(0.5/tweight)*multipaths(2).data;
    combined1=combined1+(0.6/tweight)*multipaths(3).data;
end

%3 fingers

if option==3
    %we combined the best 3 signals in proportion
    tweight =0.5+0.6+0.7;
    
    combined1=combined1+(0.5/tweight)*multipaths(2).data;
    combined1=combined1+(0.6/tweight)*multipaths(3).data;
    combined1=combined1+(0.7/tweight)*multipaths(5).data;
end

combined=combined1;


⌨️ 快捷键说明

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