📄 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -