%i_isreal() %i_real() %i_imag() added
[scilab.git] / scilab / modules / data_structures / help / en_US / types / matrices.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2006-2012 - INRIA
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <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" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="matrices">
17     <refnamediv>
18         <refname>matrices</refname>
19         <refpurpose>Scilab objects, matrices in Scilab</refpurpose>
20     </refnamediv>
21     <refsection>
22         <title>Description</title>
23         <para>
24             Matrices are basic objects defined in Scilab.
25             They can be defined as follows:
26         </para>
27         <programlisting role="no-scilab-exec"><![CDATA[
28 E=[e11,e12,...,e1n;
29    e21,e22,...,e2n;
30         ....
31    em1,em2,...,emn];
32  ]]></programlisting>
33         <para>
34             Entries <literal>eij</literal> can be real or complex numbers, polynomials,
35             rationals, strings, booleans.
36         </para>
37         <para>
38             Vectors are seen as matrices with one row or one column.
39         </para>
40     </refsection>
41     <refsection>
42         <title>Examples</title>
43         <programlisting role="example"><![CDATA[
44 E=[1,2;3,4]
45 E=[%T,%F;1==1,1~=1]
46 s=poly(0,'s');
47 E=[s,s^2;1,1+s]
48 E=[1/s,0;s,1/(s+1)]
49 E=['A11','A12';'A21','A22']
50  ]]></programlisting>
51     </refsection>
52     <refsection role="see also">
53         <title>See also</title>
54         <simplelist type="inline">
55             <member>
56                 <link linkend="poly">poly</link>
57             </member>
58             <member>
59                 <link linkend="string">string</link>
60             </member>
61             <member>
62                 <link linkend="boolean">boolean</link>
63             </member>
64             <member>
65                 <link linkend="rational">rational</link>
66             </member>
67             <member>
68                 <link linkend="empty">empty</link>
69             </member>
70             <member>
71                 <link linkend="hypermatrices">hypermatrices</link>
72             </member>
73             <member>
74                 <link linkend="testmatrix">testmatrix</link>
75             </member>
76         </simplelist>
77     </refsection>
78 </refentry>