Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.1 - 日本語

Change language to:
English - Français - Português

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

Scilab help >> Data Structures > definedfields

definedfields

フィールド値が定義済みのリストの添え字を返す

呼び出し手順

k=definedfields(l)

パラメータ

l

リスト , tlist またはmlist 変数.

k

添え字のベクトル.

説明

llist tlist mlist の場合, k=definedfields(l) は リストのフィールドが定義済みの添え字kを返します. この関数は未定義のフィールドにアクセスするとエラーとなるため, 有用です.

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)

参照

  • list — Scilab オブジェクトおよびリスト関数定義
  • tlist — Scilab オブジェクトおよび型付のリスト定義.
  • mlist — Scilab オブジェクト, 型付リスト定義に向いた行列.
  • insertion — 変数への部分的な代入または修正
  • extraction — 行列およびリストのエントリの展開
<< cell Data Structures fieldnames >>

Copyright (c) 2022-2023 (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:59 CET 2011