Plot a 2D ,with accordance to the distance between the points
3 ビュー (過去 30 日間)
古いコメントを表示
I have two array and distance between the corresponding points are known, I wish to plot the points such that it is arranged in accordance with the distance between them.
Please help me in this regard.
採用された回答
Hiro Yoshino
2020 年 12 月 15 日
I hope I can give you some guide:
s = A(:,1);
t = A(:,2);
weight = A(:,3);
G = graph(s,t,weight);
plot(G, 'EdgeLabel', G.Edges.Weight);
You should take a look at "graph" in the documentation.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!