1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
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" xmlns:scilab="http://www.scilab.org" xml:id="m2sci_eig">
15 <refname>eig (Matlab function)</refname>
16 <refpurpose>Find eigenvalues and eigenvectors</refpurpose>
19 <title>Matlab/Scilab equivalent</title>
20 <informaltable border="1" width="100%">
23 <emphasis role="bold">Matlab</emphasis>
26 <emphasis role="bold">Scilab</emphasis>
31 <programlisting role="example"><![CDATA[
36 <programlisting role="example"><![CDATA[
44 <title>Particular cases</title>
49 <para>Scilab equivalent for eig(A) is spec(A). Scilab eigenvector matrix can differ from Matlab one.</para>
53 <term>eig(A,'nobalance')</term>
56 There is no Scilab equivalent for <emphasis role="bold">"nobalance"</emphasis> option. See examples.
61 <term>eig(A,B,flag)</term>
64 There is no Scilab equivalent for <emphasis role="bold">flag</emphasis>.
71 <title>Additional Remarks</title>
74 If matrix <varname>B</varname> is nonsingular, the generalized eigenvalues can be computed
75 as the eigenvalues of the matrix <latex>B^{-1}A</latex> i.e. <code>d=spec(B^-1*A)</code>.
81 <title>Examples</title>
82 <informaltable border="1" width="100%">
85 <emphasis role="bold">Matlab</emphasis>
88 <emphasis role="bold">Scilab</emphasis>
93 <programlisting role="example"><![CDATA[
95 [V,D] = eig(A,'balance')
96 [V,D] = eig(A,'balance')
104 <programlisting role="example"><![CDATA[
108 [al,be] = spec(A,B); d = al./be;
111 [al,be,V] = spec(A,B); D = diag(al./be);