Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2026.0.0 - Português


enumeration

Get enumeration of a classdef or an object

Syntax

enumeration(classdef)
enumeration(object)
enums = enumeration(classdef)
enums = enumeration(object)

Arguments

classdef

Classdef from which we want to retrieve the enumeration

object

Object from which we want to retrieve the enumeration

enums

a string matrix of enumeration

If enumeration is called without output argument, the function only print list of enumeration.

Examples

classdef enum
    properties
        value = 0
    end

    methods
        function enum(val)
            arguments
                val = 0;
            end

            this.value = val;
        end
    end

    enumeration
        ONE(1)
        TWO(2)
        THREE(3)
        FOUR(4)
    end
end

enumeration(enum)
l = enumeration(enum)
e = enum();
enumeration(e)
l = enumeration(e)

See also

  • classdef — Classdef and objects
  • methods — Get accessible methods of a classdef or an object
  • properties — Get accessible properties of a classdef or an object

History

VersãoDescrição
2026.0.0 enumeration introduction.
Report an issue
<< clearglobal Variables exists >>

Copyright (c) 2022-2025 (Dassault Systèmes S.E.)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 16 09:15:22 CEST 2025