Plot a 2D ,with accordance to the distance between the points
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
RASHMI PRASAD
am 15 Dez. 2020
Kommentiert: RASHMI PRASAD
am 15 Dez. 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.
2 Kommentare
Akzeptierte Antwort
Hiro Yoshino
am 15 Dez. 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!