Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.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ヘルプ >> Functions > macrovar

macrovar

関数の変数

呼び出し手順

vars = macrovar(function)

引数

vars

リスト, list(in, out, nolocal, called, locals).

function

関数名.

説明

関数で使用される変数の集合のリストを返します. vars は以下の5つの文字列の列ベクトルからなる リストです:

  • in 入力変数 (vars(1));
  • out: 出力変数 (vars(2));
  • nolocal: 関数内で定義されていない関数でない変数を参照 (vars(3));
  • called: コールされた関数の名前 (vars(4));
  • locals: ローカル変数 (vars(5)).

deff('y = f(x1, x2)', 'loc = 1; y = a*x1+x2-loc');
vars = macrovar(f)

参照

  • string — 文字列に変換
  • macr2lst — リスト変換用の関数
Report an issue
<< macro Functions mode >>

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 Oct 02 13:58:35 CEST 2014