% % D = Dist(x1,y1,x2,y2) % % Computes the Euclidean distance between (x1,y1) and (x2,y2) % function D = Dist(x1,y1,x2,y2) D = sqrt((x1-x2).^2 + (y1-y2).^2);