Show Calling Dependency
by Zhengdao Wang
21 Jul 2007
(Updated 18 Aug 2007)
A function is provided that shows which functions a script/function calls
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
This submission has inspired the following:
dep
|
| MATLAB release |
MATLAB 5.2 (R10)
|
| Other requirements |
1. The "dot" program in Graphviz. See
http://www.graphviz.org/
2. The gv (ghostview) program to show the EPS file.
The program is written for Unix like environment. It may not work on other platforms. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (6) |
| 25 Jul 2007 |
Daniel Ennis
|
|
|
| 10 Aug 2007 |
Sven Probst
|
|
|
| 17 Aug 2007 |
Zhengdao Wang
|
|
|
| 17 Aug 2007 |
E Comment
|
|
|
| 21 Aug 2009 |
Glenn Gomes
|
|
|
| 10 Jun 2010 |
Lukas Lansky
|
|
|
| Updates |
| 18 Aug 2007 |
An improved version of the .m file is available. |
|
Contact us at files@mathworks.com