资源简介
3D信道模型matlab代码,完整实现3GPP TR36.873协议,由Vienna开发。
代码片段和文件信息
classdef eNodeB_sector < handle
properties
id % Sector id inside the site
eNodeB_id % Sector id for the whole sector (eNodeB) set
parent_eNodeB % Site to which this sector belongs
antenna
azimuth
attached_UEs = 0; % Number of attached UEs
scheduler
RB_grid % This sector‘s currently used resource block assignment grid
nTX % Number of antennas
total_nTX % Total number of TX antennas counting RRHs
neighbors_eNodeB % The neighboring eNodeB (i.e. the sectors in the nighboring sites except yourself)
attached_UEs_vector % A list of attached UEs
macroscopic_pathloss_model % Macroscopic pathloss model to be used. Empty if none is used (e.g. imported data)
tx_height = 25;
end
methods
function print(obj)
fprintf(‘ Sector %d: ‘obj.id);
if obj.antenna.pattern_is_3D
min_max_gains = obj.antenna.min_max_gain;
fprintf(‘%d %.1fdB %d锟絓n‘obj.antenna.antenna_typemin_max_gains(2)obj.azimuth);
else
fprintf(‘%s %.1fdB %d锟絓n‘obj.antenna.antenna_typeobj.antenna.mean_antenna_gainobj.azimuth);
end
fprintf(‘ ‘);
obj.scheduler.print;
fprintf(‘ UEs: ‘);
for u_=1:length(obj.attached_UEs_vector)
fprintf(‘%d ‘obj.attached_UEs_vector(u_).id);
end
fprintf(‘\n‘);
fprintf(‘ ‘); obj.RB_grid.print;
end
function get_large_scale_paramters(objLTE_confignetworkPathlossMap)
fprintf(‘Calculating large scale parameters for eNodeb %d \n‘ obj.eNodeB_id);
UE_positions = zeros(obj.attached_UEs 2);
data_res = LTE_config.map_resolution;
% Get UEs that are attached to this eNodeB and check whether they are in LOS or NLOS
if obj.attached_UEs > 0
for jj=1:obj.attached_UEs
for ii= 1:length(obj.neighbors_eNodeB)
UE_positions(jj:) = obj.attached_UEs_vector(jj).pos;
UE_pos_pixel = LTE_common_pos_to_pixel(UE_positions(jj:) [networkPathlossMap.roi_x(1) networkPathlossMap.roi_y(1)] data_res);
obj.attached_UEs_vector(jj).is_LOS = networkPathlossMap.LOS_map(UE_pos_pixel(2)UE_pos_pixel(1) obj.parent_eNodeB.id);
obj.attached_UEs_vector(jj).rx_height = networkPathlossMap.UE_height_map(UE_pos_pixel(2)UE_pos_pixel(1));
obj.attached_UEs_vector(jj).is_indoor = networkPathlossMap.UE_indoor_map(UE_pos_pixel(2)UE_pos_pixel(1));
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\
文件 18743 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\3D Model Guideline.docx
文件 47066 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\3D Model Guideline.pdf
文件 3818 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\LTE_sim_main_launcher_3D_model.m
文件 9406 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\TR36873PathlossModel.m
文件 1583 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\TR36873_3DAntenna.m
文件 87636 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\TR36873_Fading_3D_Channel.m
文件 9203 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\UE.m
文件 23771 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\eNodeB_sector.m
文件 35934 2015-05-13 07:26 3D_Channel_Model_stand_alone_code.git\tri_sector_3D.m
- 上一篇:灰度AGV路径识别matlab程序
- 下一篇:低通抽样定理 matlab实现
评论
共有 条评论