plot_subfun
Editor's Note: This file was selected as MATLAB Central Pick of the Week
plot_subfun('foo.m') plots a node map of the subroutines in the file foo.m, and their dependencies.
The screenshot is a sample output for the function plot_subfun.m itself.
There is a demo of examples which can be shown with web(publish('demo_subfun'))
Cite As
Christopher Pedersen (2024). plot_subfun (https://www.mathworks.com/matlabcentral/fileexchange/46070-plot_subfun), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: farg: a pedestrian M-file parser showing all used functions' syntax, fdep: a pedestrian function dependencies finder, ftoc (v1.2), MATLAB GraphViz Layout importer, GraphViz-like tools for MATLAB
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.19.0.0 | Fixed bug i unhide code (Thanks Amro). |
||
1.18.0.0 | Fixed bug in plot_graph where node comments appeared in the wrong node. With thanks to Zi-Xiang WANG for spotting the bug. |
||
1.17.0.0 | Added graceful handling of files-not-found, class definitions and scripts when using the -extsub option. |
||
1.16.0.0 | added catch code to handle calls to built-in functions |
||
1.15.0.0 | added -extsub option to recursively find all subroutines in external functions too. |
||
1.14.0.0 | Corrected error : wrong file uploaded |
||
1.13.0.0 | added option to show external function calls in the figure |
||
1.12.0.0 | bugfix to work under 32-bit windows
|
||
1.11.0.0 | bugfix in plot_graph line 202 : apparently old syntax didn't work on all windows versions.
|
||
1.10.0.0 | added -unhide option to show hidden function in grey
|
||
1.9.0.0 | bugfix that handles built-in functions, and functions with no subroutines. |
||
1.8.0.0 | added extra options for selectively hiding subroutines. |
||
1.7.0.0 | Added handling of scripts and function without subroutines.
|
||
1.6.0.0 | Changed to matlab toolbox format |
|
|
1.5.0.0 | bugfix : plot_graph was not working on older versions of matlab under windows. |
||
1.4.0.0 | bugfix to correctly handle multiple subroutines with the same name. |
||
1.3.0.0 | small update to plot_graph |
||
1.2.0.0 | added acknowledgements |
||
1.1.0.0 | Added handling of files without subroutines |
||
1.0.0.0 |