Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.1 - Français

Change language to:
English - 日本語 - Português

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Aide Scilab >> Structures > definedfields

definedfields

return index of list's defined fields

Calling Sequence

k=definedfields(l)

Arguments

l

a list , tlist or mlist variable.

k

a vector of index.

Description

If l is a list tlist mlist k=definedfields(l) returns in k the indices of the defined list fields. This function is useful because indexing undefined fields produces an error.

Examples

l=list(1);l(3)=5
k=definedfields(l)

t=tlist('x');t(5)=4
definedfields(t)

m=mlist(['m','a','b']);m.b='sdfgfgd'
definedfields(m)

See Also

  • list — Objet Scilab, Définition d'une liste
  • tlist — Objet Scilab. Définition d'une liste typée
  • mlist — Objet Scilab, définition d'une liste typée
  • insertion — insertion/modification dans une variable
  • extraction — extraction à partir d'une matrice ou d'une liste
<< cell Structures isfield >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Mar 03 11:00:14 CET 2011