%% Automagically filled params and config params that will probably not be changed
% Hardcode the release number
LTE_config.release = 'r230';
%% Check whether the parallel computing toolbox is installed
v = ver;
if isempty(strfind([v.Name],'Parallel Computing Toolbox'))
LTE_config.parallel_toolbox_installed = false;
else
LTE_config.parallel_toolbox_installed = true;
end
%% Random number generation
if LTE_config.seedRandStream
RandStream.setDefaultStream(RandStream('mt19937ar','Seed',LTE_config.RandStreamSeed));
else
RandStream.setDefaultStream(RandStream('mt19937ar','Seed',rand*intmax('uint32')));
end
%% Unquantized feedback
LTE_config.traces_config.unquantized_CQI_feedback = LTE_config.unquantized_CQI_feedback;
%% Date-time string
the_date = clock;
date_time_string = sprintf('%04d%02d%02d_%02d%02d%02d',...
the_date(1),... % Date: year
the_date(2),... % Date: month
the_date(3),... % Date: day
the_date(4),... % Date: hour
the_date(5),... % Date: minutes
floor(the_date(6))); % Date: seconds
%% Results file filename
if strcmp(LTE_config.results_file,'auto')
if LTE_config.frequency/1e9 >= 1
this_freq = sprintf('%3.2fGHz',LTE_config.frequency/1e9);
else
this_freq = sprintf('%3.0fMHz',LTE_config.frequency/1e6);
end
LTE_config.results_file = fullfile(LTE_config.results_folder,...
sprintf('%s_freq_%3.2f_bw_%dTTIs_%s_%s_%s.mat',...
this_freq,... % Frequency
LTE_config.bandwidth/1e6,... % System Bandwidth
LTE_config.simulation_time_tti,... % Simulaton length
date_time_string,... % Date string
strrep(LTE_config.scheduler,' ','_'),... % Scheduler type
LTE_config.release)); % Release number
else
LTE_config.results_file = fullfile(LTE_config.results_folder,[LTE_config.results_file '.mat']);
end
%% Macroscopic pathloss cache filename
if strcmp(LTE_config.network_cache,'auto')
if LTE_config.frequency >= 1e9
this_freq = sprintf('%3.2fGHz',LTE_config.frequency/1e9);
else
this_freq = sprintf('%3.0fMHz',LTE_config.frequency/1e6);
end
LTE_config.network_cache = fullfile('./data_files',...
sprintf('network_%d_rings_%dm_res_%s_%s_freq.mat',...
LTE_config.nr_eNodeB_rings,...
LTE_config.map_resolution,...
strrep(strtrim([LTE_config.macroscopic_pathloss_model ' ' LTE_config.macroscopic_pathloss_model_settings.environment]),' ','_'),...
this_freq));
else
% Do nothing
end
%% UE position cache filename
if strcmp(LTE_config.UE_cache_file,'auto')
if ~LTE_config.UEs_only_in_target_sector
LTE_config.UE_cache_file = fullfile('./data_files',...
sprintf('UE_cache_%drings_%dUEs_sector_%s.mat',LTE_config.nr_eNodeB_rings,LTE_config.UE_per_eNodeB,date_time_string));
else
LTE_config.UE_cache_file = fullfile('./data_files',...
sprintf('UE_cache_%drings_target_sector_only_%dUEs_sector_%s.mat',LTE_config.nr_eNodeB_rings,LTE_config.UE_per_eNodeB,date_time_string));
end
else
% Do nothing
end
%% Fast fading filenames
if strcmp(LTE_config.pregenerated_ff_file,'auto')
LTE_config.pregenerated_ff_file = fullfile('./data_files',...
sprintf('ff_%3.1fs_%dx%d_%s_%3.1fMHz_%dKmph_%s.mat',...
LTE_config.channel_model.trace_length,...
LTE_config.nTX,...
LTE_config.nRX,...
LTE_config.channel_model.type,...
LTE_config.bandwidth/1e6,...
LTE_config.UE_speed*3.6,...
date_time_string));
end
%% Transmission parameters (used for the throughput calculation)
% We will assume subcarrier spacing of 15 kHz
switch LTE_config.cyclic_prefix
case 'normal'
LTE_config.N_sym = 7;
case 'extended'
LTE_config.N_sym = 6;
otherwise
error('CP can only be "normal" or "extended"');
end
switch LTE_config.bandwidth
case 1.4e6
LTE_config.N_RB = 6;
LTE_config.fft_points = 128;
switch LTE_config.cyclic_prefix
case 'normal'
LTE_config.CP_length_samples = 9;
case 'extended'
LTE_config.CP_length_samples = 32;
end
case 3e6
LTE_config.N_RB = 15;
LTE_config.fft_points = 256;
switch LTE_config.cyclic_prefix
case 'normal'
LTE_config.CP_length_samples = 18;
case 'extended'
LTE_config.CP_length_samples = 64;
end
case 5e6
LTE_config.N_RB = 25;
LTE_config.fft_points = 512;
switch LTE_config.cyclic_prefix
case 'normal'
LTE_config.CP_length_samples = 36;
case 'extended'
LTE_config.CP_length_samples = 128;
end
case 10e6
LTE_config.N_RB = 50;
LTE_config.fft_points = 1024;
switch LTE_config.cyclic_prefix
case 'normal'
LTE_config.CP_length_samples = 72;
case 'extended'
LTE_config.CP_length_samples = 256;
end
case 15e6
LTE_config.N_RB = 75;
LTE_config.fft_points = 1536;
switch LTE_config.cyclic_prefix
case 'normal'
LTE_config.CP_length_samples = 108;
case 'extended'
LTE_config.CP_length_samples = 384;
end
case 20e6
LTE_config.N_RB = 100;
LTE_config.fft_points = 2048;
switch LTE_config.cyclic_prefix
case 'normal'
LTE_config.CP_length_samples = 144;
case 'extended'
LTE_config.CP_length_samples = 512;
end
otherwise
error('Bandwidth not supported');
end
LTE_config.Ntot = LTE_config.N_RB*12;
LTE_config.fs = 15e3*LTE_config.fft_points;
LTE_config.sym_per_RB = (12*LTE_config.N_sym) - 4;
%% BLER curves
LTE_config.BLER_curves.folder = fullfile(pwd,'data_files','AWGN_1.4MHz_r548');
LTE_config.BLER_curves.filenames = {
fullfile(LTE_config.BLER_curves.folder,'cqi_1_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091130_153201.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_2_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091130_162321.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_3_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091130_171541.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_4_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091130_180950.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_5_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091130_190619.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_6_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091130_200502.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_7_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091130_211202.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_8_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091130_221956.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_9_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091130_233253.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_10_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091201_005607.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_11_0re-tx_1TTI_UL_delay_1.4MHz_AWGN_TX_mode1_1x1_freqoff0_none_5000TTI_20091201_022305.mat')
fullfile(LTE_config.BLER_curves.folder,'cqi_12_0r
LTE.rar_源码
版权申诉
64 浏览量
2022-09-23
12:12:10
上传
评论
收藏 9KB RAR 举报
小贝德罗
- 粉丝: 70
- 资源: 1万+
最新资源
- 课设毕设基于SSM的旅游景点线路网站 LW+PPT+源码可运行.zip
- EDA实验计数器CNT9999-DTCNT9999实验源代码
- 课设毕设基于SSM的抗疫医疗用品销售平台 LW+PPT+源码可运行.zip
- 基于Halcon的仿照VisonPro的机器视觉软件.zip
- battery-percentage-detector 使用 Javascript 的电池百分比检测器
- 毕业设计基于Qt+FFmpeg+SDL实现的音视频播放器源码.zip
- 课设毕设基于SSM的固定资产管理系统 LW+PPT+源码可运行.zip
- 课设毕设基于SSM的个人交友网站 LW+PPT+源码可运行.zip
- 课设毕设基于SSM的高校信息资源共享平台 LW+PPT+源码可运行.zip
- 课设毕设基于SSM的高校二手交易平台 LW+PPT+源码可运行.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈