22
22
* See the file ./license.txt
24
24
<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:id="var2vec">
26
<refname>var2vec</refname>
27
<refpurpose>Transform a scilab variable in a vector of double</refpurpose>
30
<title>Calling Sequence</title>
31
<synopsis>[vec]=var2vec(var)</synopsis>
33
<refsection id="Module_var2vec">
38
<link linkend="xcos">xcos</link>
43
<refsection id="Description_var2vec">
44
<title>Description</title>
46
var2vec / vec2var functions are used inside the interfacing functions of Scilab blocks to give the possibility to the user to handle Scilab objects with the real parameter (rpar) and with the discrete state register (z).
50
<programlisting role="example"><![CDATA[
26
<refname>var2vec</refname>
27
<refpurpose>Transform a scilab variable in a vector of double</refpurpose>
30
<title>Calling Sequence</title>
31
<synopsis>[vec]=var2vec(var)</synopsis>
33
<refsection id="Module_var2vec">
38
<link linkend="xcos">xcos</link>
43
<refsection id="Description_var2vec">
44
<title>Description</title>
46
var2vec / vec2var functions are used inside the interfacing functions of Scilab blocks to give the possibility to the user to handle Scilab objects with the real parameter (rpar) and with the discrete state register (z).
50
<programlisting role="example"><![CDATA[
52
52
]]></programlisting>
54
<refsection id="Parameters_var2vec">
55
<title>Arguments</title>
58
<para><emphasis role="bold">var :</emphasis> Input parameter. Can be any types of Scilab objects.</para>
61
<para><emphasis role="bold">vec :</emphasis> Output parameter. A vector of real numbers.</para>
65
<refsection id="Example_var2vec">
66
<title>Example</title>
67
<programlisting role="example"><![CDATA[
54
<refsection id="Parameters_var2vec">
55
<title>Arguments</title>
59
<emphasis role="bold">var :</emphasis> Input parameter. Can be any types of Scilab objects.
64
<emphasis role="bold">vec :</emphasis> Output parameter. A vector of real numbers.
69
<refsection id="Example_var2vec">
70
<title>Example</title>
71
<programlisting role="example"><![CDATA[
68
72
-->a=list("cos",[1.1,2])
88
92
]]></programlisting>
90
<refsection id="SeeAlso_var2vec">
91
<title>See Also</title>
95
<link linkend="vec2var">vec2var - Transform a vector of double in a scilab variable (Scilab Function)</link>
94
<refsection id="SeeAlso_var2vec">
95
<title>See Also</title>
99
<link linkend="vec2var">vec2var - Transform a vector of double in a scilab variable (Scilab Function)</link>