資源簡介
無線信道的路徑損耗模型的仿真,具體為自由空間的損耗和正態陰影路徑損耗模型

代碼片段和文件信息
%plot_PL_general.m繪制不同的路徑損耗模型
clear?allclfclc
addpath(‘E:\matlab‘)
fc=1.5e9;
d0=100;
sigma=3;
distance=[1:2:31].^2;
Gt=[1?1?0.5];
Gr=[1?0.5?0.5];
Exp=[2?3?6];
for?k=1:3
????y_Free(k:)=PL_free(fcdistanceGt(k)Gr(k));
????y_logdist(k:)=PL_logdist_or_norm(fcdistanced0Exp(k));
????y_lognorm(k:)=PL_logdist_or_norm(fcdistanced0Exp(1)sigma);
end
subplot(131)
semilogx(distancey_Free(1:)‘k-o‘distancey_Free(2:)‘k-^‘distancey_Free(3:)‘k-s‘)
grid?onaxis([1?1000?40?110])
title([‘Free?PL-loss?Modelf_c=‘num2str(fc/1e6)‘MHz‘])
xlabel(‘Distance[m]‘)ylabel(‘Path?loss[dB]‘)
legend(‘Gt=1Gr=1‘‘GT=1Gr=0.5‘‘Gt=0.5Gr=0.5‘2)
subplot(132)
semilogx(distancey_logdist(1:)‘k-o‘distancey_logdist(2:)‘k-^‘distancey_logdist(3:)‘k-s‘)
grid?onaxis([1?1000?40?110])
title([‘Log-distance?Path-loss?Modelf_c=‘num2str(fc/1e6)‘MHz‘])
xlabel(‘Distance[m]‘)ylabel(‘Path?Loss[dB]‘)
legend(‘n=2‘‘n=3‘‘n=6‘2)
subplot(133)
semilogx(distancey_lognorm(1:)‘k-o‘distancey_lognorm(2:)‘k-^‘distancey_lognorm(3:)‘k-s‘)
grid?onaxis([1?1000?40?110])
title([‘Log-normal?Path-loss?Modelf_c=‘num2str(fc/1e6)‘\sigma=‘num2str(sigma)‘dB‘])
xlabel(‘Distance[m]‘)ylabel(‘Path?loss[dB]‘)
legend(‘path?1‘‘path?2‘‘path?3‘2)
????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????310??2014-11-27?03:32??path?loss\PL_free.m
?????文件?????????332??2014-11-26?23:16??path?loss\PL_logdist_or_norm.m
?????文件????????1292??2014-11-27?03:31??path?loss\plot_PL_general.m
?????目錄???????????0??2014-11-27?03:38??path?loss\
- 上一篇:近似熵matlab程序
- 下一篇:GM11灰色模型預測的matlab程序
評論
共有 條評論