資源簡介
AODV routing protocol
代碼片段和文件信息
clc;
clear?all;
Max=10;
for(i=1:1:Max)
n(i:)=randint(12[2?100])
end
%n(2:)=randint(12[2?100])
%n(3:)=randint(12[2?100])
%n(4:)=randint(12[2?100])
%n(5:)=randint(12[2?100])
for?i=1:1:Max
%stem(?n(i1)n(i2))
plot(?n(i1)?n(i2)‘--rs‘‘LineWidth‘2...
????????????????‘MarkerEdgeColor‘‘k‘...
????????????????‘MarkerFaceColor‘‘g‘...
????????????????‘MarkerSize‘10...
????????????????‘Tag‘‘hi‘)
???????????
???????????
hold?on;
end
grid?on;
hold?on;
%?generate?RREQ
RREQ.Src=1
RREQ.Dst=5
%%%%%%%%?all?the?nodes?generate?a?hello?packet?put?the?start?time
%%?when?received?by?the?destination?the?time?is?calculated?and?thus
%%?distance?is?obtained.
xs=0
ys=0
for?i=1:1:Max
????for?j=1:1:Max
????????if(i==j)
????????d(ij)=0
????????else
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1971??2009-04-07?00:00??AODV-MATLAB\Aodv.m
?????文件?????????514??2009-04-06?23:56??AODV-MATLAB\performance.m
- 上一篇:MATLAB 數字圖像處理圖像復原算法源代碼(維納濾波
- 下一篇:DWT
評論
共有 條評論