文件名称:sureshaodv
介绍说明--下载内容均来自于网络,请自行研究使用
Code : AODV Routing.
x=1:20
s1=x(1)
d1=x(20)
clc
A=randint(20)
Making matrix all diagonals=0 and A(i,j)=A(j,i),i.e. A(1,4)=a(4,1),
A(6,7)=A(7,6)
for i=1:20
for j=1:20
if i==j
A(i,j)=0
else
A(j,i)=A(i,j)
end
end
end- Code : AODV Routing.
x=1:20
s1=x(1)
d1=x(20)
clc
A=randint(20)
Making matrix all diagonals=0 and A(i,j)=A(j,i),i.e. A(1,4)=a(4,1),
A(6,7)=A(7,6)
for i=1:20
for j=1:20
if i==j
A(i,j)=0
else
A(j,i)=A(i,j)
end
end
end
x=1:20
s1=x(1)
d1=x(20)
clc
A=randint(20)
Making matrix all diagonals=0 and A(i,j)=A(j,i),i.e. A(1,4)=a(4,1),
A(6,7)=A(7,6)
for i=1:20
for j=1:20
if i==j
A(i,j)=0
else
A(j,i)=A(i,j)
end
end
end- Code : AODV Routing.
x=1:20
s1=x(1)
d1=x(20)
clc
A=randint(20)
Making matrix all diagonals=0 and A(i,j)=A(j,i),i.e. A(1,4)=a(4,1),
A(6,7)=A(7,6)
for i=1:20
for j=1:20
if i==j
A(i,j)=0
else
A(j,i)=A(i,j)
end
end
end
(系统自动生成,下载前可以参看下载内容)
下载文件列表
sureshaodv.m