title: Automatically generating a diagram of function calls in MATLAB
body: <p>Anybody knows of a tool that can be used to automatically build <a href="http://en.wikipedia.org/wiki/Diagram">diagrams</a> of function calls in MATLAB? </p>
  
  <p>E.g. For a given function, the tool would recursively go through function calls and build a 2D graph where nodes would represent functions and directed edges would connect calling functions with called functions. </p>
  
  <p>Ideally the tool could allow the user to turn on and off filters to only include user-defined functions, limit the depth of recursion, etc.</p>
  
  <p>I believe <a href="http://en.wikipedia.org/wiki/Doxygen">Doxygen</a> provides some similar functionality for more traditional <a href="http://en.wikipedia.org/wiki/Object-oriented_programming">OOP</a> languages, but I was wondering if something like this exists already for MATLAB.</p>
  
  <p>Thanks!</p>