1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<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="matrices">
4
<refname>matrices</refname>
5
<refpurpose> Scilab object, matrices in Scilab</refpurpose>
8
<title>Description</title>
10
Matrices are basic objects defined in Scilab.
11
They can be defined as follows:
13
<programlisting role="no-scilab-exec"><![CDATA[
4
<refname>matrices</refname>
5
<refpurpose> Scilab object, matrices in Scilab</refpurpose>
8
<title>Description</title>
10
Matrices are basic objects defined in Scilab.
11
They can be defined as follows:
13
<programlisting role="no-scilab-exec"><![CDATA[
14
14
E=[e11,e12,...,e1n;
18
18
]]></programlisting>
20
Entries <literal>eij</literal> can be real or complex numbers, polynomials,
21
rationals, strings, booleans.
24
Vectors are seen as matrices with one row or one column.
28
<title>Examples</title>
29
<programlisting role="example"><![CDATA[
20
Entries <literal>eij</literal> can be real or complex numbers, polynomials,
21
rationals, strings, booleans.
24
Vectors are seen as matrices with one row or one column.
28
<title>Examples</title>
29
<programlisting role="example"><![CDATA[
31
31
E=[%T,%F;1==1,1~=1]
34
34
E=[1/s,0;s,1/(s+1)]
35
35
E=['A11','A12';'A21','A22']
36
36
]]></programlisting>
38
<refsection role="see also">
39
<title>See Also</title>
40
<simplelist type="inline">
42
<link linkend="poly">poly</link>
45
<link linkend="string">string</link>
48
<link linkend="boolean">boolean</link>
51
<link linkend="rational">rational</link>
54
<link linkend="empty">empty</link>
57
<link linkend="hypermatrices">hypermatrices</link>
38
<refsection role="see also">
39
<title>See Also</title>
40
<simplelist type="inline">
42
<link linkend="poly">poly</link>
45
<link linkend="string">string</link>
48
<link linkend="boolean">boolean</link>
51
<link linkend="rational">rational</link>
54
<link linkend="empty">empty</link>
57
<link linkend="hypermatrices">hypermatrices</link>