?? The result is an IS-95CDMA forward link software simulation package ,which mimics real-time data com
?? M
?? 復制代碼
?? 下載
?全屏
字號:?+
??
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;