13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="macrovar">
15
<refname>macrovar</refname>
16
<refpurpose> variables of function</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>vars=macrovar(function)</synopsis>
23
<title>Arguments</title>
29
list <literal>list(in,out,nolocal,called,locals)</literal>
36
<para>name of a function</para>
42
<title>Description</title>
44
Returns in a list the set of variables used by a function.
45
<literal>vars</literal> is a list made of five column vectors of character strings
48
<literal>in</literal> input variables (<literal>vars(1)</literal>)
51
<literal>out</literal> output variables (<literal>vars(2)</literal>)
54
<literal>nolocal</literal>referenced variables which are not defined inside the function and which are not functions (<literal>vars(3)</literal>)
57
<literal>called</literal> names of functions called (<literal>vars(4)</literal>)
60
<literal>locals</literal> local variables (<literal>vars(5)</literal>)
64
<title>Examples</title>
65
<programlisting role="example"><![CDATA[
15
<refname>macrovar</refname>
16
<refpurpose> variables of function</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>vars=macrovar(function)</synopsis>
23
<title>Arguments</title>
29
list <literal>list(in,out,nolocal,called,locals)</literal>
36
<para>name of a function</para>
42
<title>Description</title>
44
Returns in a list the set of variables used by a function.
45
<literal>vars</literal> is a list made of five column vectors of character strings
48
<literal>in</literal> input variables (<literal>vars(1)</literal>)
51
<literal>out</literal> output variables (<literal>vars(2)</literal>)
54
<literal>nolocal</literal>referenced variables which are not defined inside the function and which are not functions (<literal>vars(3)</literal>)
57
<literal>called</literal> names of functions called (<literal>vars(4)</literal>)
60
<literal>locals</literal> local variables (<literal>vars(5)</literal>)
64
<title>Examples</title>
65
<programlisting role="example"><![CDATA[
66
66
deff('y=f(x1,x2)','loc=1;y=a*x1+x2-loc')
68
68
]]></programlisting>
70
<refsection role="see also">
71
<title>See Also</title>
72
<simplelist type="inline">
74
<link linkend="string">string</link>
77
<link linkend="macr2lst">macr2lst</link>
70
<refsection role="see also">
71
<title>See Also</title>
72
<simplelist type="inline">
74
<link linkend="string">string</link>
77
<link linkend="macr2lst">macr2lst</link>