Show Calling Dependency

A function is provided that shows which functions a script/function calls

You are now following this Submission

The script shows the calling sequence of a function or a script. Given the script/function name, this utility

1. displays a list of functions that are called.

2. generates a .dot file

3. uses Graphviz/dot tool to generate an .eps file that shows the dependency relationship of the functions called directly or indirectly.

4. uses gv to display the .eps file.

In order for the graphical display to work, it needs

1. The "dot" program in Graphviz. See
http://www.graphviz.org/

2. The gv (ghostview) program to show the EPS file.

System functions (those that are not in a directory whose full path name contains the user id) are ignored.

Cite As

Zhengdao Wang (2026). Show Calling Dependency (https://uk.mathworks.com/matlabcentral/fileexchange/15653-show-calling-dependency), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: dep (unmaintained)

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

An improved version of the .m file is available.