Navigation

Operators and Keywords

Function List:

C++ API

: names = fieldnames (struct)
: names = fieldnames (obj)
: names = fieldnames (javaobj)
: names = fieldnames ("javaclassname")

Return a cell array of strings with the names of the fields in the specified input.

When the input is a structure struct, the names are the elements of the structure.

When the input is an Octave object obj, the names are the public properties of the object.

When the input is a Java object javaobj or a string containing the name of a Java class javaclassname, the names are the public fields (data members) of the object or class.

See also: numfields, isfield, orderfields, struct, methods.

Package: octave