Plot a 2D ,with accordance to the distance between the points
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
RASHMI PRASAD
il 15 Dic 2020
Commentato: RASHMI PRASAD
il 15 Dic 2020
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.
Risposta accettata
Hiro Yoshino
il 15 Dic 2020
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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graph and Network Algorithms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!