get a tlist, mlist or struct fields names
f = fieldnames(lst)
A tlist, mlist or struct variable.
Strings column vector of fields names.
fieldnames function returns field names
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".
|Report an issue|
|<< definedfields||Data Structures||getfield >>|