www.pudn.com > tryGUI.rar > MRC_combine.m


function rx=MRC_combine(Tao,Atten,rt,Tf,Ts,N_bit) 
%Tao--------path delays 
%Atten------path attenuations 
%rt---------received multipath signal 
%N_bit------the number of symbols 
%Tf---------frame duation 
%Ts---------sample period 
%Dg----pulse duation 
%St---------local reference pulse 
%算法是先将多径对齐合并,再相关接收 
n_path=length(Tao);%the number of multipath 
Total_samples=N_bit*(Tf/Ts);%the number of samples in the overall symbols 
com_wei=Atten./sum(Atten.*Atten);%the weigth values to be combined  
for i=1:n_path 
    rx(i,:)=com_wei(i)*rt(round(Tao(i)/Ts):(Total_samples-1)+round(Tao(i)/Ts));%对接收信号的延时进行处理 
end 
%多径合并 
if n_path>1 
    rx=sum(rx); 
else 
    rx=rx; 
end