Scilab 6.0.1
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
definedfields
returns an index of list's defined fields
Syntax
k = definedfields(lst)
Arguments
- lst
a list, tlist or mlist variable.
- k
a vector of index.
Description
If lst
is a list
, a tlist
, a mlist
k = definedfields(lst)
returns in k
the indices of the defined list fields. This function is useful because indexing undefined fields produces an error.
Examples
See also
- list — a Scilab object and a list definition function
- tlist — Scilab object and typed list definition.
- mlist — Scilab object, matrix oriented typed list definition
- insertion — partial variable assignation or modification
- extraction — matrix and list entry extraction
Report an issue | ||
<< boolean | Data Structures | fieldnames >> |