文件名称:routing
介绍说明--下载内容均来自于网络,请自行研究使用
clc
clear
n=input( Total node= )
if n > 6
error( not <6 )
end
alphabets= char(65:1:65+n)
adj=zeros(n,n)
for p=1:n
for q=1:n
adj(p,q)=input([ Enter Weight between [ ,alphabets(p), ] , [ ,alphabets(q), ] = ])
end
end
for p=1:n
a(p).status=0 -clc
clear
n=input( Total node= )
if n > 6
error( not <6 )
end
alphabets= char(65:1:65+n)
adj=zeros(n,n)
for p=1:n
for q=1:n
adj(p,q)=input([ Enter Weight between [ ,alphabets(p), ] , [ ,alphabets(q), ] = ])
end
end
for p=1:n
a(p).status=0
clear
n=input( Total node= )
if n > 6
error( not <6 )
end
alphabets= char(65:1:65+n)
adj=zeros(n,n)
for p=1:n
for q=1:n
adj(p,q)=input([ Enter Weight between [ ,alphabets(p), ] , [ ,alphabets(q), ] = ])
end
end
for p=1:n
a(p).status=0 -clc
clear
n=input( Total node= )
if n > 6
error( not <6 )
end
alphabets= char(65:1:65+n)
adj=zeros(n,n)
for p=1:n
for q=1:n
adj(p,q)=input([ Enter Weight between [ ,alphabets(p), ] , [ ,alphabets(q), ] = ])
end
end
for p=1:n
a(p).status=0
(系统自动生成,下载前可以参看下载内容)
下载文件列表
routing.m