channel_rayleigh.m

来自「OFDM的在瑞利信道下的与单载波信号的识别算法」· M 代码 · 共 19 行

M
19
字号
%======================
%   Rayleigh process
%====================== 
function ray_out = channel_Rayleigh(f1,c1,th1,f2,c2,th2,N_sim,T_s,T_start);

% Simulation for Rayleigh process, output is complex Gaussian process %
%此程序建立瑞利信道参数(U(t)=U1(t)+jU2(t))
t = (0:N_sim-1)*T_s + T_start;
ray_out_I = 0;
ray_out_Q = 0;
for k=1:length(f1)
    ray_out_I = ray_out_I + c1(k)*cos(2*pi*f1(k)*t+th1(k));
end    
for k=1:length(f2)
    ray_out_Q = ray_out_Q + c2(k)*cos(2*pi*f2(k)*t+th2(k));
end  

ray_out = ray_out_I + j * ray_out_Q;
%ray_out = abs(ray_out);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?