Calling Tree

Function creates tree structure of funtion calls in m-file.
2.3K Downloads
Updated 8 Jan 2003

No License

This function will create a tree structure containing all function calls in the m-file given as input. The function will automatically also search the called m-files.
Function that call themselves will not create infinite loops.
You can set the 'search area', f.i. the function will only search through m-files in '.\work\'.

Call:
struct = calling_tree(filename, restriction)
where restriction can just be 'work', it does not have to be the entire path.
restriction = '' means: no restriction

Example:
struct = calling_tree('calling_tree', '')

A good way to view the structure is the recently updated display_structure function (also by me) which can be found on this site. It will expand all sub-structures automatically.

Cite As

Mark Jobse (2024). Calling Tree (https://www.mathworks.com/matlabcentral/fileexchange/2917-calling-tree), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Files and Folders in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0