1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
<?xml version="1.0" encoding="UTF-8"?>
<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">
<info>
<pubdate>$LastChangedDate$</pubdate>
</info>
<refnamediv>
<refname>matrices</refname>
<refpurpose> Scilab object, matrices in Scilab</refpurpose>
</refnamediv>
<refsection>
<title>Description</title>
<para>
Matrices are basic objects defined in Scilab.
They can be defined as follows:</para>
<programlisting role = ""><![CDATA[
E=[e11,e12,...,e1n;
e21,e22,...,e2n;
....
em1,em2,...,emn];
]]></programlisting>
<para>
Entries <literal>eij</literal> can be real or complex numbers, polynomials,
rationals, strings, booleans.</para>
<para>
Vectors are seen as matrices with one row or one column.</para>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example"><![CDATA[
E=[1,2;3,4]
E=[%T,%F;1==1,1~=1]
s=poly(0,'s');E=[s,s^2;1,1+s]
E=[1/s,0;s,1/(s+1)]
E=['A11','A12';'A21','A22']
]]></programlisting>
</refsection>
<refsection>
<title>See Also</title>
<simplelist type="inline">
<member>
<link linkend="poly">poly</link>
</member>
<member>
<link linkend="string">string</link>
</member>
<member>
<link linkend="boolean">boolean</link>
</member>
<member>
<link linkend="rational">rational</link>
</member>
<member>
<link linkend="empty">empty</link>
</member>
<member>
<link linkend="hypermatrices">hypermatrices</link>
</member>
</simplelist>
</refsection>
</refentry>
|