Skip to content

superclasses

matlab_compat · scripts/matlab_compat/superclasses.m

SUPERCLASSES  Return all superclass names (MATLAB-compatible).
 MATLAB's superclasses () answers a column cell array of class NAMES
 (char), walking the inheritance graph left-to-right depth-first and
 omitting duplicates.  Verified against MATLAB R2026a for diamond
 mixin graphs.  The meta.class SuperclassList / SuperClasses property
 holds only the direct metaobjects; this function expands that list
 recursively to match MATLAB.