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

  • 大小: 7.83KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發布日期: 2021-03-28
  • 語言: Matlab
  • 標簽: matlab??

資源簡介


已在MATLAB環境下成功運行,適合大家做畢業設計。

資源截圖

代碼片段和文件信息

NodeNums?=?100;?%?the?num?of?node?
AreaR?=?100?;???%?the?area?of?simulate
NodeTranR=10;???%??the?transit?Radius
Elec=50?*?10^(-9);?%
Eamp=100*10^(-12);?
Bx=50;??%?The?Postion?of?baseation
By=175;
MaxInteral?=700;?%?the?leach?simulate?time
Pch=0.05;??%?the?desired?percentage?of?cluster?heads?
InitEn=0.5;??%?the?init?energy?of?all?node
Tr=30;??
?TDMA=100;
Kbit=2000;?%?the?bits?of?a?node?transmiting?a?packet?every?time
BandWitch?=?1*10.^(6);?%??Channel?Bandwitch
TOS_LOCAL_ADDRESS?=?0;?
for?i=1:(MaxInteral)
????AliveNode(i)=NodeNums;
????AmountData(i)=0;
end
sym?alldata;
alldata=0;
LAECH?=?zeros(1MaxInteral);
LAENO?=?zeros(1MaxInteral);??
for?i=1:1:NodeNums?
????EnNode(i)=InitEn;??%?the?init?energy?of?all?node
????StateNode(i)=1;????%?the?State?of?all?node?1:?alive?0:dead
????ClusterHeads(i)=0;??%?the?Set?of?Cluster?Head?1:?cluster?head?0?:node
????
????Rounds=0;??%?the?round
end
Threshold=0;????%?the?threshold?of?node?becoming?a?cluster-head

????Node.x=

評論

共有 條評論