Distance from points to points.

1 次查看(过去 30 天)
It's possible to read these coordinates from a text file formatted in this way:

采纳的回答

Walter Roberson
Walter Roberson 2014-2-5
The identifier would be the row index of D.
  4 个评论
Francesco
Francesco 2014-2-5
Thanks. In general If I have n points I have to do this, where rows is the numbers of rows of the txt file.
[X, Y] = ndgrid(1:rows);
identifiers = arrayfun(@(X,Y) sprintf('%d_%d', X, Y), X, Y, 'Uniform', 0);
How Can I use pdist? What can I enter as input?
Walter Roberson
Walter Roberson 2014-2-5
Your previous question asked about using identifiers of that form and defined what the identifiers should look like. This question asks about using linear identifiers of the form 1, 2, 3, ... 6 .... n*(n-1)/2. But you have not given any indication of how the two are to fit together.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by