<< predef Variables who >>

Scilab Help >> Scilab > Variables > properties

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

History

VersionDescription
2026.0.0 properties introduction.

Report an issue
<< predef Variables who >>