function tf = isenum(e)
%ISENUM True for enumerations.
%   ISENUM(E) returns logical 1 (true) if E is a enumeration.
%   and logical 0 (false) otherwise.
%
%   See also ISSTRUCT, ISNUMERIC, ISOBJECT

%   Copyright 2014-2023 The MathWorks, Inc.

tf = false;
if isobject(e) 
    m = metaclass(e);
    if ~isempty(m)
        tf = m.Enumeration;
    end
end
