plot_subfun

plots the subroutines in a function, and their dependencies on each other
2,4K descargas
Actualizado 7 dic 2016

Ver licencia

Nota del editor: 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'))

Citar como

Christopher Pedersen (2024). plot_subfun (https://www.mathworks.com/matlabcentral/fileexchange/46070-plot_subfun), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2016b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre File Operations en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
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
bugfix to work in folders with spaces

1.11.0.0

bugfix in plot_graph line 202 : apparently old syntax didn't work on all windows versions.
also fixed line 207 so it gives a meaninful error message !

1.10.0.0

added -unhide option to show hidden function in grey
bugfix to catch an error in the -ends option
added a demo.
changed name to plot_subfun

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.
figures now have a 3/4" margin to ensure they fit on the useable area of the screen.

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