I have a set of points and I like to compute the (pairwise) euclidian distance for those points. The set has a form like this:
pts = {{1, 1}, {1, 2}, {3, 3}, {4, 5}}
I need the output as a matrix, because I like to use it for a weighted graph. I noticed that there is a function called DistanceMatrix[]
, however my Version doesn't support it.
Is there a easy way using the EuclideanDistance[]
function ?