Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2026.0.0 - English


properties

Get accessible properties of a classdef or an object

Syntax

properties(classdef)
properties(object)
props = properties(classdef)
props = properties(object)

Arguments

classdef

Classdef from which we want to retrieve the properties

object

Object from which we want to retrieve the properties

props

a string matrix of accessible properties

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

Examples

classdef props
    properties (public)
        pub
    end

    properties (protected)
        prot
    end

    properties (private)
        priv
    end
end

properties(props)
l = properties(props)
p = props();
properties(p)
l = properties(p)

See also

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

History

VersionDescription
2026.0.0 properties introduction.
Report an issue
<< predef Variables who >>

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:02:27 CEST 2025