Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - English

Change language to:
Français - 日本語 - 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

Scilab Help >> Advanced functions > macrovar

macrovar

variables of function

Calling Sequence

vars = macrovar(function)

Arguments

vars

a list, list(in, out, nolocal, called, locals).

function

a name of a function.

Description

Returns in a list the set of variables used by a function. vars is a list made of five column vectors of character strings:

  • in: input variables (vars(1));
  • out: output variables (vars(2));
  • nolocal: referenced variables which are not defined inside the function and which are not functions (vars(3));
  • called: names of functions called (vars(4));
  • locals: local variables (vars(5));

Examples

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

See Also

  • string — conversion to string
  • macr2lst — function to list conversion
Report an issue
<< macro Advanced functions mode >>

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