垂直切换的仿真(终)(2)
text(0,1,'\\leftarrow Wimax','FontSize',10)
title('the state of mobile station in LTE and Wimax network')
%############################END THE PROGRAM ##############################
2. is_in_LTE_coverage.m
function is_LTE=is_in_LTE_coverage(MS_coordinate) Tcide whether the mobile station is in the LTE network global LTE_BS_coordinate;
d=norm(MS_coordinate-LTE_BS_coordinate); if d<=1000&d>=35 is_LTE=true; else
is_LTE=false; end
3. is_in_Wimax_coverage.m
function is_Wimax=is_in_Wimax_coverage(MS_coordinate) Tcide whether the mobile station is in the Wimax network global Wimax_BS_coordinate;
d=norm(MS_coordinate-Wimax_BS_coordinate); if d<=300&d>=36 is_Wimax=true; else
is_Wimax=false; end
4. calculate_RSS.m
function RSS=calculate_RSS(MS_coordinate,MS_speed,s,record_time,Tc) êlculate the received signal strength switch s
case 'LTE'
slow_fading=calculate_slow_fading(MS_coordinate,'LTE',... record_time,Tc);
fast_fading=calculate_fast_fading(MS_speed,record_time,'LTE',Tc); RSS=33-slow_fading+fast_fading; otherwise
slow_fading=calculate_slow_fading(MS_coordinate,'Wimax',... record_time,Tc);
fast_fading=calculate_fast_fading(MS_speed,record_time,'Wimax',Tc); RSS=23-slow_fading+fast_fading; end
5. calculate_fast_fading.m
function fast_fading=calculate_fast_fading(MS_speed,t,s,Tc)
c=3.0*10^8; %the speed of electromagnetic wave fc1=2000*10^6; %the frequency of the carrier for LTE fc2=2500*10^6; %the frequency of the carrier for Wimax fm1=MS_speed*fc1/c; %the maximum of doppler frequency shift %in LTE network
fm2=MS_speed*fc2/c; %the maximum of doppler frequency shift N0=2; switch s
case 'LTE' fc=fc1;
fm=fm1; otherwise fc=fc2; fm=fm2; end N=50; for i=1:N
R_t(i)=jakes(N0,fm,t+i/N*Tc,fc); end
fast_fading=10*log10(mean(R_t.^2));
6. calculate_slow_fading.m
function slow_fading= calculate_slow_fading(MS_coordinate,s,record_time,Tc) êlcualte the large scale fading
global fc_LTE fc_Wimax LTE_BS_coordinate Wimax_BS_coordinate shadow_fading=calculate_shadow_fading(s,record_time,Tc); switch s
case 'LTE' f=fc_LTE;
d=norm(MS_coordinate-LTE_BS_coordinate); otherwise
f=fc_Wimax;
d=norm(MS_coordinate-Wimax_BS_coordinate); end
propagation_loss=32.44+20*log10(d/1000)+20*log10(f/10^6)+12+3+24; slow_fading=propagation_loss+shadow_fading;
7. calculate_shadow_fading.m
function shadow_fading=calculate_shadow_fading(s,record_time,Tc) global large_scale_time_interval large_scale_LTE large_scale_wimax ... large_scale_time_start large_scale_time_end N if record_time>large_scale_time_end
large_scale_time_start=large_scale_time_start+... large_scale_time_interval/2;
large_scale_time_end=large_scale_time_end+large_scale_time_interval/2; large_scale_LTE(1:5)=large_scale_LTE(6:10)
large_scale_LTE(6:10)=ShadowGenerate(3,0.5,N/2); large_scale_wimax(6:10)=ShadowGenerate(3,0.5,N/2); end switch s
case 'LTE'
shadow_fading=interp1(linspace(large_scale_time_start,... large_scale_time_end,N),large_scale_LTE,record_time,'cubic'); otherwise
shadow_fading=interp1(linspace(large_scale_time_start,...
large_scale_time_end,N),large_scale_wimax,record_time,'cubic'); end
8. ShadowGenerate.m
function corr = ShadowGenerate(standard_d,relation_coeff,N) % e.g. SFstd = 8dB lambda = 0.5;
forwcoeff = standard_d * sqrt(1-relation_coeff.^2); backwcoeff = [ones(1,N) -relation_coeff]; uncorr = randn(1,N);
corr = filter(forwcoeff,backwcoeff,uncorr);
…… 此处隐藏:1324字,全部文档内容请下载后查看。喜欢就下载吧 ……相关推荐:
- [学前教育]MC9S12XS256RMV1 xs128芯片手册4
- [学前教育]安东尼语录经典语录
- [学前教育]e级gps控制测量技术设计书
- [学前教育]苏教版2022-2022学年八年级下学期期末
- [学前教育]装修公司推广 营销
- [学前教育]家政服务合同(完整版)
- [学前教育]湖北省2016届高三联考语文试题
- [学前教育]爱立信无涯学习系统LTE题库1-LTE基础知
- [学前教育]揭秘大众柴油车作弊软件原理
- [学前教育]人才流失原因及对策分析
- [学前教育]房屋建筑施工工程劳务分包合同
- [学前教育]国际贸易实务试卷A卷09.6
- [学前教育]校园废品回收活动计划方案书范文格
- [学前教育]电大成本会计试题及答案
- [学前教育]大学物理实验 华南理工出版社 绪论答案
- [学前教育]爱丁堡产后抑郁量表
- [学前教育]液压冲击的危害、产生原因与防止方法(
- [学前教育]学生工作总结高一学生期中考试总结_020
- [学前教育]人民医院医疗废物管理规章制度大全
- [学前教育]阳光维生素的巨大抗癌潜能阅读题答案.d
- 马云在云锋基金江苏论坛闭幕式的发言
- 试论小学体育教育中的心理健康教育-教
- 语文A版一年级下册《语文乐园一》教学
- 2021四川大学物理化学考研真题经验参考
- [人教A版]2015-2016学年高中数学 第二
- 终端网点销售返利协议书
- 江苏省2015年眼科学主治医师青光眼考试
- 2017年部编人教版八年级语文上册教案
- 十一中学七年级英语上册Unit7Howmuchar
- 以赛促教的创新性实验教学机制建设实践
- 平凉市崆峒区2015七年级下生物期末试题
- 琶洲(地块五)A、B塔楼1、2#塔吊基础
- 一级医院工作制度与人员岗位职责
- 2018北京西城区高三二模理科数学试题及
- 炒股密码线技术 - 图文
- 职高学生生涯发展辅导教案
- 语文人教版四年级上册8 世界地图引出的
- 最新最新人教版二年级上册全册数学教案
- 2017高考英语全国2卷精彩试题(有问题
- 普通心理学笔记




