mrc_combine.m
来自「超宽带系统链路matlab仿真程序 超宽带系统简单仿真平台」· M 代码 · 共 23 行
M
23 行
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 + =
减小字号Ctrl + -
显示快捷键?