www.pudn.com > Geneticalgorithmpathplanningsimulationprogram.rar > chap10_1calculate.m, change:2006-07-26,size:266b


function [d]=juli(m,n) 
x=[87 91 83 71 64 68 83 87 74 71 58 54 51 37 41 2 7 22 25 18 4 13 18 24 25 41 45 44 58 62]; 
y=[7 38 46 44 60 58 69 76 78 71 69 62 67 84 94 99 64 60 62 54 50 40 40 42 38 26 21 35 35 32]; 
%m=m+1; 
%n=n+1; 
d=sqrt((x(m)-x(n))^2+(y(m)-y(n))^2);