File Exchange

image thumbnail


version (21.5 KB) by Oleg Komarov
List subclasses and their dependency graph

1 Download

Updated 01 Jul 2016

GitHub view license on GitHub

Matlab function to list subclasses and dependencies

Lists all subclasses of ROOTCLASS and their node dependency. ROOTCLASS can be a string with the name of the class, an object or a meta.class().

It looks for subclasses in the ROOTPATH folder and in all its subfolders (at any depth). If ROOTPATH is not specified, it is set to the folder where ROOTCLASS is located. ROOTCLASS can also be a negative integer indicating how many folders above that of ROOTCLASS to begin the search.

Produces a table with names, from and to nodes, i.e. the current and the node of the direct subclass.

If the getSubclasses() is called without an output, it will plot a graph() with the dependencies (requires version R2015b).

which sde
C:\Program Files\MATLAB\R2016a\toolbox\finance\finsupport\@sde\sde.m % sde constructor

getSubclasses('sde','C:\Program Files\MATLAB\R2016a\toolbox\finance\finsupport\');

Cite As

Oleg Komarov (2020). okomarov/getSubclasses (, GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux