91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-29
  • 語言: Matlab
  • 標簽: matlab??

資源簡介

本代碼是關于毫米波信道模型的matlab代碼,初學者可以借鑒一下

資源截圖

代碼片段和文件信息

%?plot_SV_model.m
clearclcclose?all
Lam=0.0233;???????????????????????????%簇??平均到達率??ns
lambda=2.5;??????????????????????????????%射線??平均到達率??ns
Gam=7.4;????????????????????????????????%簇指數功率衰減常數
gamma=4.3;??????????????????????????????%射線指數功率衰減常數
N=1000;???????????????????????????????????%信道數
power_nom=1;???????????????????????%第一簇第一射線的功率
std_shdw=3;????????????????????????????%歲數陰影衰落的標準差
t1=0:300;
t2=0:0.01:5;

p_cluster=Lam*exp(-Lam*t1);?????????%理想的指數PDF
h_cluster=exprnd(1/Lam1N);??????????%產生隨機數
[n_cluster?x_cluster]=hist(h_cluster25);??????????%得到分布
subplot(221)??????????????????????????????????????????????%簇到達時間作圖
plot(t1p_cluster‘k‘)hold?on
plot(x_clustern_cluster*p_cluster(1)/n_cluster(1)‘B:‘);?????????%畫圖
legend(‘Ideal‘‘Simulation‘)
title([‘Distribution?of?Cluster?Arrival?Time\Lambda=‘num2str(Lam)])
xlabel(‘T_m-T_{m-1}?[ns]‘)ylabel(‘p(T_m|T_{m-1})‘)

p_ray=lambda*exp(-lambda*t2);????????????????????%理想的指數PDF
h_ray=exprnd(1/lambda11000);?????????????????????%生成隨機數
[n_rayx_ray]=hist(h_ray25);?????????????????????????????%得到分布
subplot(222)
plot(t2p_ray‘k‘)hold?on
plot(x_rayn_ray*p_ray(1)/n_ray(1)‘k:‘)??????????%畫圖
legend(‘Ideal‘‘Simulation‘)
title([‘Distribution?of?Ray?Arrival?Time\lambda=‘num2str(lambda)])
xlabel(‘\tau_{rm}-\tau_{(r-1)m}?[ns]‘)
ylabel(‘p(\tau_{rm}|\tau_{(r-1)m})‘)

[htt0np]=SV_model_ct(LamlambdaGamgammaNpower_nomstd_shdw);
subplot(223)
stem(t(1:np(1)1)abs(h(1:np(1)1))‘ko‘)
title(‘Generated?Channel?Impluse?Response‘)
xlabel(‘delay[ns]‘)ylabel(‘Magnitude‘)
%hh=abs(h(1:np(1)7));
%t1=abs(t(1:np(1)7));
%save?h2.txt?hh?-ascii
%save?t2.txt??t1??-ascii

X=10.^(std_shdw*randn(1N)./20);
[tempx]=hist(20*log10(X)25);
subplot(224)
plot(xtemp‘k-‘)
axis([-10?10?0?120])
title([‘Log-normal?Distribution?\sigma_X=‘num2str(std_shdw)‘dB‘])
xlabel(‘20*log10(X)[dB]‘)ylabel(‘Occasion‘)




?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2030??2015-01-28?11:03??SV_channel_model\SV_1_eg.m
?????文件????????2401??2015-01-19?22:22??SV_channel_model\SV_model_ct.m

評論

共有 條評論