The Matlab function superclasses returns the names of all parents of a given class.
Is there an equivalent to find all classes derived from a given class, i
Not a complete solution, but, you could parse all .m
files in the path as text, and use regular expressions to look for the subclass definitions.
Something like ^\s*classdef\s*(\w*)\s*<\s*superClassName\s*(%.*)?
Note that this will fail silently on any subclass definitions that use anything fancy, such as eval
.