資源簡介
路徑損耗模型分為自由空間傳播模型和對數(shù)距離路徑損耗模型,本程序包含以上模型。
代碼片段和文件信息
%plot_PL_general.m
%MIMO-OFDM?Wireless?Communications?with?MATLAB㈢???Yong?Soo?Cho?Jaekwon?Kim?Won?Young?Yang?and?Chung?G.?Kang
%?2010?John?Wiley?&?Sons?(Asia)?Pte?Ltd
clear?all?clf?clc
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:)‘b-^‘distancey_Free(3:)‘r-s‘)
grid?on?axis([1?1000?40?110])?title([‘Free?PL?Models?f_c=‘num2str(fc/1e6)‘MHz‘])
xlabel(‘Distance[m]‘)?ylabel(‘Path?loss[dB]‘)
legend(‘G_t=1?G_r=1‘‘G_t=1?G_r=0.5‘‘G_t=0.5?G_r=0.5‘2)
subplot(132)
semilogx(distancey_logdist(1:)‘k-o‘distancey_logdist(2:)‘b-^‘distancey_logdist(3:)‘r-s‘)
grid?on?axis([1?1000?40?110])
title([‘Log-distance?PL?model?f_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:)‘b-^‘distancey_lognorm(3:)‘r-s‘)
grid?on?axis([1?1000?40?110])
title([‘Log-normal?PL?model?f_c=‘num2str(fc/1e6)‘MHz?‘‘\sigma=‘?num2str(sigma)?‘dB‘])
xlabel(‘Distance[m]‘)?ylabel(‘Path?loss[dB]‘)?legend(‘path?1‘‘path?2‘‘path?2‘2)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1416??2010-08-25?02:09??plot_PL_general.m
?????文件????????620??2010-08-25?02:04??PL_free.m
?????文件????????665??2010-08-25?02:04??PL_logdist_or_norm.m
-----------?---------??----------?-----??----
?????????????????2701????????????????????3
評論
共有 條評論