📄 mcm_channel_model.m
字号:
%=============================================
% Monte Carlo method for a time-variant channel modelling
% Sun Jie-ting
% 11.10.04, Ecust
%=============================================
function [h,t_next] = MCM_channel_model(u, initial_time, number_of_summations, symbol_duration, f_dmax, channel_coefficients);
t = initial_time;
Channel_Length = length(channel_coefficients);
h_vector = [];
for k=1:Channel_Length;
u_k = u(k,:); % A random variable
phi = 2 * pi * u_k; % Phase coefficients are created
f_d = f_dmax * sin(2*pi*u_k); % Doppler frequency after Monte Carlo method is created
h_tem= channel_coefficients(k)* 1/(sqrt(number_of_summations)) * sum(exp(j*phi).*exp(j*2*pi*f_d*t));
h_vector = [h_vector, h_tem];
end;
h = h_vector;
t_next = initial_time + symbol_duration; %Coherent time for the next symbol
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -