フィルターのクリア

Getting distance of centroids from each other.

5 ビュー (過去 30 日間)
Sean Ivan Roxas
Sean Ivan Roxas 2022 年 4 月 9 日
コメント済み: Sean Ivan Roxas 2022 年 4 月 10 日
Is it possible to get the distances between each centroid? For example I have 5 centroids (centroid 1 - 5) in an image and I would like to get the distance between centroid 1 and centroid 2, then centroid 1 and centroid 3, then centroid 1 and centroid 4, then centroid 1 and centroid 5, then for centroid 2 and centroid 3, and so on. Then I will store these distances in an adjacency list or an adjacency matrix so that I could create a graph network.

採用された回答

Walter Roberson
Walter Roberson 2022 年 4 月 9 日
use pdist()
  5 件のコメント
Walter Roberson
Walter Roberson 2022 年 4 月 9 日
G = graph(distances)
Sean Ivan Roxas
Sean Ivan Roxas 2022 年 4 月 10 日
Is it possible to use graphtraverse or dfsearch to calculate for the effective resistance of the graph?

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by