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?

Products

Release

R2018b

Asked:

on 4 Dec 2018

Answered:

on 4 Dec 2018

Community Treasure Hunt

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

Start Hunting!