Version 2.01 (7.01 KB) by Kim Dohyun
Generate and display dependency tree with a highlight


Updated 11 Feb 2019

From GitHub

View License on GitHub

Generate dependency tree of given folder and display

genDep(directory) generate dependency tree in digraph form and store it in /.dependency/G.mat

If the directory is not given, the directory is set to the current folder.

dispDep(G) or dispDep(directory) displays the dependency tree by using the graph plot.

Here, G is digraph and directory is the directory name.

If the input is not given, display the current folder's dependency tree.

Resulting plot has the following functionalities.
1. Highlight selected file and its children, parents. (click a node. highlighting multiple files is also possible by shift+left click.)
2. Extract and export subproject (control+left click). After typing in the directory name for the new project, all selected files will be copied to the given directory name.

Cite As

Kim Dohyun (2023). dependency_matlab (, GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on File Operations 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!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes

bug fix for old matlab


1. Nodes have a different color when the folder is different.
2. When the legend is clicked, node size of the nodes in the selected folder increases. (click any blank in figure will dehighlight)


minor bugfixes


To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.