本帖最后由 MATLAB白白朵 于 2018-4-25 15:21 编辑
问题1:现在已经有了多径信道的代码如下,但是我加进我的程序中仿真出来的结果误差很大,不知道是什么原因?(仿真结果在代码下方)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function h = multipath(mp_mode, unit_delay, dbg)
if or(mp_mode>19,mp_mode<1) h=1; return; end
%--------%multipath channel model
%Medium-Echo Static (1--6),
%Violence-Echo Static (7--10)
path_scale(1:19,1:6)=0; %in db
path_delay(1:19,1:6)=0; %in us
path_scale(1,1:6)=[ -20 0 -20 -10 -14 -18];
path_delay(1,1:6)=[ -1.8 0 0.15 1.8 5.7 18]+1.8;
path_scale(2,1:6)=[ -18 0 -20 -20 -10 -14];
path_delay(2,1:6)=[ -1.8 0 0.15 1.8 5.7 30]+1.8;
path_scale(3,1:6)=[ -20 0 -14 -10 -20 -18];
path_delay(3,1:6)=[ -1.8 0 0.15 1.8 5.7 18]+1.8;
path_scale(4,1:6)=[ 0 -10 -14 -18 -20 -20];
path_delay(4,1:6)=[ 0 0.2 1.9 3.9 8.2 15];
path_scale(5,1:6)=[ -19 0 -22 -17 -22 -19];
path_delay(5,1:6)=[ -0.2 0 0.08 0.15 0.3 0.6]+0.2;
path_scale(6,1:6)=[ -10 -20 0 -20 -10 -14];
path_delay(6,1:6)=[ -18 -1.8 0 0.15 1.8 5.7]+18;