Scilab 6.0.0
Scilab Help >> Data Structures > fieldnames
fieldnames
get a tlist, mlist or struct fields names
Syntax
f = fieldnames(lst)
Arguments
- lst
A tlist, mlist or struct variable.
- f
Strings column vector of fields names.
Description
The fieldnames
function returns field names
of a tlist
, mlist
or struct
. fieldnames
does not work on cells.
As said in rational or syslin help pages, internal representation of
some Scilab objects is a tlist (or rlist), so using fieldnames
with them will return the generic forms of these objects.
For example, for rationals, the function will return "num","den" and "dt".
Examples
See Also
- extraction — matrix and list entry extraction
- getfield — list field extraction
- tlist — Scilab object and typed list definition.
- mlist — Scilab object, matrix oriented typed list definition
- struct — create a struct
Comments
Add a comment:
Please login to comment this page.