Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call graph generation from matlab src code

I am trying to create a function call graph for around 500 matlab src files. I am unable to find any tools which could help me do the same for multiple src files.

Is anyone familiar with any tools or plugins?

In case any such tools are not available, any suggestions on reading 6000 lines of matlab code without documentation is welcome.

like image 376
Vijay Avatar asked Sep 14 '11 18:09

Vijay


1 Answers

Let me suggest M2HTML, a tool to automatically generate HTML documentation of your MATLAB m-files. Among its feature list:

  • Finds dependencies between functions and generates a dependency graph (using the dot tool of GraphViz)
  • Automatic cross-referencing of functions and subfunctions with their definition in the source code

Check out this demo page to see an example of the output of this tool.

like image 121
Amro Avatar answered Oct 01 '22 17:10

Amro