function result = isEnumeration(value) % isEnumeration Checks if a given value is an instance of an enumeration class % Usage: % result = isEnumeration(value); % Get meta information about the class of the value metaInfo = metaclass(value); % Check if the meta information indicates an enumeration class result = metaInfo.Enumeration; end