Scilab 5.5.2
- Scilabヘルプ
- Functions
- Built-in & external
- Libraries
- profiling
- argn
- bytecode
- bytecodewalk
- code2str
- comp
- deff
- edit
- exec
- execstr
- fun2string
- funcprot
- function
- functions
- getd
- head_comments
- listfunctions
- macr2lst
- macr2tree
- macro
- macrovar
- mode
- overloading
- recompilefunction
- sciargs
- str2code
- tree2code
- varargin
- varargout
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
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)
| Report an issue | ||
| << macro | Functions | mode >> |