Image Graphs How to use it

I have downloaded Image Graphs matlab code but i am not able to run it. I am getting errors like this..
Undefined function or variable 'graph'.
Error in binaryImageGraph3 (line 111) g = graph(edge_table,node_table);
Error in binaryImageGraph (line 91) [g,nodenums] = binaryImageGraph3(bw,conn);
Error in imageGraph (line 74) g = binaryImageGraph(true(sz),conn);
Error in DemoSurfacePlots (line 16) g = imageGraph([480 640],8);
Please help me to run this code.

 Accepted Answer

Stephen23
Stephen23 on 17 Nov 2017
As its help clearly states graph was introduced in R2015b.
Solution to your problem: install R2015b or later version of MATLAB.

1 Comment

Ok i am working on R2015a. That is why i am getting this error. Thank u very much.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!