首页 > 其他 > 详细

估计没用的

时间:2020-04-29 23:41:32      阅读:75      评论:0      收藏:0      [点我收藏+]

%%
%************p值比较大,变为传统中继通信,ber=pr2+pd2;
%理论与阈值p,buffer大小S无关。这样的话,理论是不变的。
%仿真的S=1,p变(变大与变小),仿真的ber几乎不变的。因为根据程序buffer_num=0,选SR,buffer_num=buffer_size选RD
%%
Ps_dBm = -30:3:-10;
%M=4,p=0.35
% 仿真
% ber=[0.00737450000000000,0.00307075000000000,0.00122650000000000,0.000380250000000000,0.000118250000000000,3.05000000000000e-05,1.10000000000000e-05];
% semilogy(Ps_dBm,ber,‘-*‘);
% hold on;
% % 理论
% ber1=[0.00743049832270891,0.00311965418933342,0.00117415065306936,0.000394763823398162,0.000118201327149556,3.14362957793253e-05,7.40912960047090e-06];
% semilogy(Ps_dBm,ber1,‘-o‘);
% hold on;
%%
%M=4,p=0.4
%仿真
% ber=[0.00733600000000000,0.00314600000000000,0.00114450000000000,0.000381250000000000,0.000116250000000000,3.62500000000000e-05,6.00000000000000e-06];
% semilogy(Ps_dBm,ber,‘-*‘);
% hold on;
% % 理论
% ber1=[0.00743049832270891,0.00311965418933342,0.00117415065306936,0.000394763823398162,0.000118201327149556,3.14362957793253e-05,7.40912960047090e-06];
% semilogy(Ps_dBm,ber1,‘-o‘);
% hold on;

%%
%M=4,p=0.6
%仿真
ber6=[0.00744925000000000,0.00322600000000000,0.00116550000000000,0.000392000000000000,0.000103250000000000,3.55000000000000e-05,5.50000000000000e-06];
% p=0.8
ber8=[0.00743775000000000,0.00317300000000000,0.00120325000000000,0.000395750000000000,0.000112000000000000,3.72500000000000e-05,8.25000000000000e-06];
%p=1
ber10=[0.00734650000000000,0.00309300000000000,0.00117950000000000,0.000429250000000000,0.000130250000000000,3.45000000000000e-05,7.00000000000000e-06];
%p=2
ber20=[0.00729700000000000,0.00302625000000000,0.00113550000000000,0.000415750000000000,0.000113000000000000,3.12500000000000e-05,3.50000000000000e-06];
%p=2.5
ber250=[0.00746975000000000,0.00327600000000000,0.00117750000000000,0.000378750000000000,0.000123750000000000,3.90000000000000e-05,4.00000000000000e-06];
semilogy(Ps_dBm,ber10,‘-*‘);
hold on;
%理论
ber1=[0.00743049832270891,0.00311965418933342,0.00117415065306936,0.000394763823398162,0.000118201327149556,3.14362957793253e-05,7.40912960047090e-06];
semilogy(Ps_dBm,ber1,‘-o‘);
hold on;

估计没用的

原文:https://www.cnblogs.com/-xyq/p/12805765.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!