FUNCTION REFERENCE
metaclass
Description of a class.
Description of a class.
Syntax
mc = metaclass(obj)For an object of a classdef class, a struct with the fields Name, Sealed, HandleCompatible, Enumeration, and the lists PropertyList, MethodList, EventList, EnumerationMemberList and SuperclassList (struct arrays with a Name field). For example, {mc.PropertyList.Name} lists the property names.
Example
exist('metaclass') % 2Differences from MATLAB: The result is a struct, not a meta.class object; the ?Name operator is not supported yet, so use metaclass on an object.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.