mcm_channel_model.m

来自「是关于空时编码的nrs 」· M 代码 · 共 34 行

M
34
字号

%=============================================
% 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 + =
减小字号Ctrl + -
显示快捷键?