How to get the coordinate value on the Matlab script for further coding from the previous graph?
Show older comments

How to get the select/label two nodes from graph to be source and target?And transfer the node information(position value/coordinates) on the editor for more coding later?
2 Comments
Geoff Hayes
on 18 Mar 2017
Sneha - please clarify what you mean by How to get the select/label two nodes from graph to be source and target. Do you want to be able to click on two nodes, the first being the source and the second the target? And you want to store these values somewhere? I'm not sure what you mean by on the editor unless you want this information to be displayed in the workspace. Is the above axes in a GUI or is it just drawn from the command line?
Geoff Hayes
on 18 Mar 2017
Oh - and is this homework since it relates back to https://www.mathworks.com/matlabcentral/answers/330552-how-to-plot-random-x-y-coordinates-on-a-plot-if-x-and-y-has-different-values-in-array-form-and-j?
Accepted Answer
More Answers (1)
Sneha Kolapalli
on 5 Apr 2017
1 vote
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!