Effacer les filtres
Effacer les filtres

Distance from points to points.

1 vue (au cours des 30 derniers jours)
Francesco
Francesco le 5 Fév 2014
Modifié(e) : Francesco le 22 Mar 2014
It's possible to read these coordinates from a text file formatted in this way:
  2 commentaires
Image Analyst
Image Analyst le 5 Fév 2014
Isn't this a duplicate of http://www.mathworks.com/matlabcentral/answers/114838#answer_123302 which already has people responding?
Francesco
Francesco le 5 Fév 2014
It's not exactly the same questions.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Fév 2014
The identifier would be the row index of D.
  4 commentaires
Francesco
Francesco le 5 Fév 2014
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 le 5 Fév 2014
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by