MATLAB: How to visualize graph nodes on top of image with segmented cells they correspond to

graphimage segmentationMATLABnetwork analysisnodes

I'm looking to visualize the nodes and edges of my graph in the physical layout that corresponds to the spatial location each node corresponds to in a segmented image. I have the spatial information for each segmented epithelial cell and the node it corresponds to in xy and am just wondering if there is a plugin that already exists to do this.

Best Answer

You can construct a graph object in MATLAB: https://www.mathworks.com/help/matlab/ref/graph.html. Then you can also plot() the graph object: https://www.mathworks.com/help/matlab/ref/graph.plot.html. And in the plot function, you can specify the XData, and YData values to place the nodes at required locations.