Skip to content

fieldnames

builtin · libnexusinterp/corefcn/data-proprietary.cc

: names = fieldnames (obj)

Return the field names of obj as a column cell array of strings.

For a structure (or structure array) these are the field names in the order in which they were created. For a table seen by user code they are the variable names followed by Properties, Row and Variables (as in MATLAB). For an object of a class with public properties, or for the name of such a class, they are the names of the public properties. For a Java object, or the name of a Java class, they are the public fields. For a graphics handle they are the names of its properties.