How can I plot edges with predefined vertices coordinates?

I have two data sets. One is a list of x and y coordinates of 1000 nodes, the other is an edge list that defines node connections. How can I plot the two together, or combine them into a more useful data set?
For example:
nodes = [712, 2.8; 301, 2.4; ...]
edges = [1,2; 1,75; 1,4; 1,6; ...]
The node at coordinates (712, 2.8) is node number 1 in the edge array. How might I be able to replace each single digit designation with the corresponding coordinates in a larger array?

产品

版本

R2018b

提问:

2018-12-4

回答:

2018-12-4

Community Treasure Hunt

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

Start Hunting!

Translated by