summaryrefslogtreecommitdiffstats
path: root/scilab_doc
diff options
context:
space:
mode:
authorVincent COUVERT <vincent.couvert@scilab.org>2010-03-19 15:19:02 +0100
committerVincent COUVERT <vincent.couvert@scilab.org>2010-03-19 15:19:02 +0100
commit8111e28fd113ee8d27ff467afef59a0dbd2a6fa4 (patch)
tree60d2f9f10e216daa8a9bdd4996757519beae34e6 /scilab_doc
parentfcbadd1b25e0ef4ae223980b204dec6db1f540e4 (diff)
downloadscilab-8111e28fd113ee8d27ff467afef59a0dbd2a6fa4.zip
scilab-8111e28fd113ee8d27ff467afef59a0dbd2a6fa4.tar.gz
Merge Wiki version (matlabscilab.xml) and separate files version
Diffstat (limited to 'scilab_doc')
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/acot.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/acoth.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/acsc.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/acsch.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/addition.xml8
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/all.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/and.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/any.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/asec.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/asech.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/blanks.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/box.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/cd.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/cla.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/clock.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/close.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/colon.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/colordef.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/csc.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/csch.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/cumprod.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/cumsum.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/dec2hex.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/delete.xml3
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/diag.xml8
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/diff.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/docopt.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/drawnow.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/eig.xml12
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/elementwise_left_division.xml51
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/elementwise_multiplication.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/elementwise_power.xml8
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/elementwise_right_division.xml12
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/elementwise_transpose.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/equal.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/error.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/eval.xml15
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/exist.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/false.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/ferror.xml3
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/feval.xml7
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/fftshift.xml8
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/filesep.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/findstr.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/fopen.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/for.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/format.xml104
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/fprintf.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/fread.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/fscanf.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/fseek.xml14
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/fwrite.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/graymon.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/great.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/great_equal.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/grid.xml8
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/help.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/hold.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/horzcat.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/ifft.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/isa.xml156
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/isfield.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/isfinite.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/ishold.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/isletter.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/islogical.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/isnumeric.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/isspace.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/issparse.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/isvector.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/left_division.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/length.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/less.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/less_equal.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/log2.xml3
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/logical.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/lower.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/matlabscilab.xml663
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/max.xml6
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/min.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/mkdir.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/multiplication.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/nargin.xml46
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/nargout.xml45
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/ndims.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/not.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/not_equal.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/num2str.xml3
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/ones.xml46
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/or.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/pause.xml7
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/pow2.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/power.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/prod.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/rand.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/randn.xml8
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/repmat.xml8
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/reshape.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/right_division.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/setstr.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/sort.xml8
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/sparse.xml83
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/strcmp.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/strcmpi.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/strfind.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/substraction.xml (renamed from scilab_doc/Matlab_Scilab_dictionary/subtraction.xml)4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/sum.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/tanh.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/transpose.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/true.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/type.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/upper.xml4
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/vertcat.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/waitforbuttonpress.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/warning.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/who.xml2
-rw-r--r--scilab_doc/Matlab_Scilab_dictionary/whos.xml2
117 files changed, 857 insertions, 760 deletions
diff --git a/scilab_doc/Matlab_Scilab_dictionary/acot.xml b/scilab_doc/Matlab_Scilab_dictionary/acot.xml
index c3da43c..1e5c893 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/acot.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/acot.xml
@@ -35,7 +35,7 @@ acot(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38atan(1 ./A) 38atan((1) ./A)
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/acoth.xml b/scilab_doc/Matlab_Scilab_dictionary/acoth.xml
index 9bb270d..112d6fc 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/acoth.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/acoth.xml
@@ -35,7 +35,7 @@ acoth(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38atanh(1 ./A) 38atanh((1) ./A)
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/acsc.xml b/scilab_doc/Matlab_Scilab_dictionary/acsc.xml
index 39f9f0c..49d7772 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/acsc.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/acsc.xml
@@ -35,7 +35,7 @@ acsc(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38asin(1 ./A) 38asin((1) ./A)
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/acsch.xml b/scilab_doc/Matlab_Scilab_dictionary/acsch.xml
index f7c526f..536181c 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/acsch.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/acsch.xml
@@ -35,7 +35,7 @@ acsch(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38asinh(1 ./A) 38asinh((1) ./A)
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/addition.xml b/scilab_doc/Matlab_Scilab_dictionary/addition.xml
index d0ad196..4fe3edc 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/addition.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/addition.xml
@@ -12,7 +12,7 @@
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="addition"> 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" version="5.0-subset Scilab" xml:id="addition">
14 <refnamediv> 14 <refnamediv>
15 <refname>addition</refname> 15 <refname>+</refname>
16 <refpurpose>(Matlab function) Plus</refpurpose> 16 <refpurpose>(Matlab function) Plus</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
@@ -46,7 +46,7 @@
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <variablelist> 47 <variablelist>
48 <varlistentry> 48 <varlistentry>
49 <term>Character strings addition</term> 49 <term>Character strings addition:</term>
50 <listitem> 50 <listitem>
51 <para> 51 <para>
52In Scilab, string addition is the same as string concatenation, what is done in Matlab by <emphasis role="bold">strcat</emphasis> function. In Matlab, string addition is the equivalent of the addition of corresponding ASCII codes. 52In Scilab, string addition is the same as string concatenation, what is done in Matlab by <emphasis role="bold">strcat</emphasis> function. In Matlab, string addition is the equivalent of the addition of corresponding ASCII codes.
@@ -54,7 +54,7 @@ In Scilab, string addition is the same as string concatenation, what is done in
54 </listitem> 54 </listitem>
55 </varlistentry> 55 </varlistentry>
56 <varlistentry> 56 <varlistentry>
57 <term>Empty matrix and addition</term> 57 <term>Empty matrix and addition:</term>
58 <listitem> 58 <listitem>
59 <para> 59 <para>
60In Matlab, addition can only be made if the operands have the same size unless one is a scalar. For exemple, empty matrices can only be added to another empty matrix or a scalar. Note that when you add a scalar and an empty matrix, Matlab result is always an empty matrix while in Scilab, result is equal to the scalar. 60In Matlab, addition can only be made if the operands have the same size unless one is a scalar. For exemple, empty matrices can only be added to another empty matrix or a scalar. Note that when you add a scalar and an empty matrix, Matlab result is always an empty matrix while in Scilab, result is equal to the scalar.
@@ -62,7 +62,7 @@ In Matlab, addition can only be made if the operands have the same size unless o
62 </listitem> 62 </listitem>
63 </varlistentry> 63 </varlistentry>
64 <varlistentry> 64 <varlistentry>
65 <term>Unary plus</term> 65 <term>Unary plus:</term>
66 <listitem> 66 <listitem>
67 <para> 67 <para>
68In Matlab, unary plus exists, but in Scilab it is automatically deleted when compiling so we can consider that Scilab unary plus does not exist. 68In Matlab, unary plus exists, but in Scilab it is automatically deleted when compiling so we can consider that Scilab unary plus does not exist.
diff --git a/scilab_doc/Matlab_Scilab_dictionary/all.xml b/scilab_doc/Matlab_Scilab_dictionary/all.xml
index 29dead2..e3ae899 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/all.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/all.xml
@@ -49,7 +49,7 @@ Matlab <emphasis role="bold">all</emphasis> function can work with complexes, wh
49</para> 49</para>
50 <variablelist> 50 <variablelist>
51 <varlistentry> 51 <varlistentry>
52 <term>B=all(A) &lt;--&gt; B=and(A)</term> 52 <term>The Matlab expression <emphasis role="bold">B=all(A)</emphasis> is translated into Scilab by <emphasis role="bold">B=and(A)</emphasis>:</term>
53 <listitem> 53 <listitem>
54 <para> 54 <para>
55If <emphasis role="bold">A</emphasis> is a matrix, <emphasis role="bold">all(A)</emphasis> is equivalent to <emphasis role="bold">all(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="bold">and(A)</emphasis> is a logical AND of all elements of <emphasis role="bold">A</emphasis>. If <emphasis role="bold">A</emphasis> is a multidimensional array then Matlab treats the values along the first non-singleton dimension, but Scilab returns logical AND of all elements of <emphasis role="bold">A</emphasis>. 55If <emphasis role="bold">A</emphasis> is a matrix, <emphasis role="bold">all(A)</emphasis> is equivalent to <emphasis role="bold">all(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="bold">and(A)</emphasis> is a logical AND of all elements of <emphasis role="bold">A</emphasis>. If <emphasis role="bold">A</emphasis> is a multidimensional array then Matlab treats the values along the first non-singleton dimension, but Scilab returns logical AND of all elements of <emphasis role="bold">A</emphasis>.
@@ -57,10 +57,10 @@ If <emphasis role="bold">A</emphasis> is a matrix, <emphasis role="bold">all(A)<
57 </listitem> 57 </listitem>
58 </varlistentry> 58 </varlistentry>
59 <varlistentry> 59 <varlistentry>
60 <term>B=all(A,dim) &lt;--&gt; B=and(A,dim)</term> 60 <term>The Matlab expression <emphasis role="strong">B=all(A,dim)</emphasis> is translated into Scilab by <emphasis role="strong">B=and(A,dim)</emphasis>:</term>
61 <listitem> 61 <listitem>
62 <para> 62 <para>
63In Scilab <emphasis role="bold">dim=1</emphasis> is equivalent to <emphasis role="bold">dim=''r''</emphasis> and <emphasis role="bold">dim=2</emphasis> is equivalent <emphasis role="bold">dim=''c''</emphasis>. In Matlab, <emphasis role="bold">dim</emphasis> can be greater then the number of dimension of <emphasis role="bold">A</emphasis> (in this case, <emphasis role="bold">B=A</emphasis>), in Scilab you will get an error message. 63In Scilab <emphasis role="bold">dim=1</emphasis> is equivalent to <emphasis role="bold">dim="r"</emphasis> and <emphasis role="bold">dim=2</emphasis> is equivalent to <emphasis role="bold">dim="c"</emphasis>. In Matlab, <emphasis role="bold">dim</emphasis> can be greater then the number of dimension of <emphasis role="bold">A</emphasis> (in this case, <emphasis role="bold">B=A</emphasis>), in Scilab you will get an error message.
64</para> 64</para>
65 </listitem> 65 </listitem>
66 </varlistentry> 66 </varlistentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/and.xml b/scilab_doc/Matlab_Scilab_dictionary/and.xml
index 42828ed..80c2f16 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/and.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/and.xml
@@ -12,7 +12,7 @@
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="and"> 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" version="5.0-subset Scilab" xml:id="and">
14 <refnamediv> 14 <refnamediv>
15 <refname>and</refname> 15 <refname>&amp;</refname>
16 <refpurpose>(Matlab function) Logical AND</refpurpose> 16 <refpurpose>(Matlab function) Logical AND</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
@@ -48,7 +48,7 @@
48Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal for string matrices, convert it to ascii code matrices using <emphasis role="bold">m2scistr</emphasis> to have the same result. 48Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal for string matrices, convert it to ascii code matrices using <emphasis role="bold">m2scistr</emphasis> to have the same result.
49</para> 49</para>
50 <para> 50 <para>
51Scilab function has a bug! 51<emphasis role="bold">Scilab function has a bug! </emphasis>
52</para> 52</para>
53 </refsection> 53 </refsection>
54</refentry> 54</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/any.xml b/scilab_doc/Matlab_Scilab_dictionary/any.xml
index 47559b7..fd9feef 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/any.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/any.xml
@@ -49,7 +49,7 @@ Matlab <emphasis role="bold">any</emphasis> function can work with complexes, wh
49</para> 49</para>
50 <variablelist> 50 <variablelist>
51 <varlistentry> 51 <varlistentry>
52 <term>B=any(A) &lt;--&gt; B=or(A)</term> 52 <term>Matlab expression <emphasis role="bold">B=any(A)</emphasis> translated into Scilab by <emphasis role="bold">B=or(A)</emphasis>:</term>
53 <listitem> 53 <listitem>
54 <para> 54 <para>
55If <emphasis role="bold">A</emphasis> is a matrix, <emphasis role="bold">any(A)</emphasis> is equivalent to <emphasis role="bold">any(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="bold">or(A)</emphasis> is a logical OR of all elements of <emphasis role="bold">A</emphasis>. If <emphasis role="bold">A</emphasis> is a multidimensional array then Matlab treats the values along the first non-singleton dimension, but Scilab returns logical OR of all elements of <emphasis role="bold">A</emphasis>. 55If <emphasis role="bold">A</emphasis> is a matrix, <emphasis role="bold">any(A)</emphasis> is equivalent to <emphasis role="bold">any(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="bold">or(A)</emphasis> is a logical OR of all elements of <emphasis role="bold">A</emphasis>. If <emphasis role="bold">A</emphasis> is a multidimensional array then Matlab treats the values along the first non-singleton dimension, but Scilab returns logical OR of all elements of <emphasis role="bold">A</emphasis>.
@@ -57,10 +57,10 @@ If <emphasis role="bold">A</emphasis> is a matrix, <emphasis role="bold">any(A)<
57 </listitem> 57 </listitem>
58 </varlistentry> 58 </varlistentry>
59 <varlistentry> 59 <varlistentry>
60 <term>B=any(A,dim) &lt;--&gt; B=or(A,dim)</term> 60 <term>Matlab expression <emphasis role="bold">B=any(A,dim)</emphasis> translated into Scilab by <emphasis role="bold">B=or(A,dim)</emphasis>:</term>
61 <listitem> 61 <listitem>
62 <para> 62 <para>
63In Scilab <emphasis role="bold">dim=1</emphasis> is equivalent to <emphasis role="bold">dim=''r''</emphasis> and <emphasis role="bold">dim=2</emphasis> is equivalent <emphasis role="bold">dim=''c''</emphasis>. In Matlab, <emphasis role="bold">dim</emphasis> can be greater then the number of dimension of <emphasis role="bold">A</emphasis> (in this case, <emphasis role="bold">B=A</emphasis>), in Scilab you will get an error message. 63In Scilab <emphasis role="bold">dim=1</emphasis> is equivalent to <emphasis role="bold">dim="r"</emphasis> and <emphasis role="bold">dim=2</emphasis> is equivalent to <emphasis role="bold">dim="c"</emphasis>. In Matlab, <emphasis role="bold">dim</emphasis> can be greater then the number of dimension of <emphasis role="bold">A</emphasis> (in this case, <emphasis role="bold">B=A</emphasis>), in Scilab you will get an error message.
64</para> 64</para>
65 </listitem> 65 </listitem>
66 </varlistentry> 66 </varlistentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/asec.xml b/scilab_doc/Matlab_Scilab_dictionary/asec.xml
index c54737d..e3d5ca8 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/asec.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/asec.xml
@@ -35,7 +35,7 @@ asec(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38acos(1 ./A) 38acos((1) ./A)
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/asech.xml b/scilab_doc/Matlab_Scilab_dictionary/asech.xml
index fada1cb..45a5b0c 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/asech.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/asech.xml
@@ -35,7 +35,7 @@ asech(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38acosh(1 ./A) 38acosh((1) ./A)
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/blanks.xml b/scilab_doc/Matlab_Scilab_dictionary/blanks.xml
index 0501fe1..87e3b87 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/blanks.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/blanks.xml
@@ -35,7 +35,7 @@ blanks
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/box.xml b/scilab_doc/Matlab_Scilab_dictionary/box.xml
index 1161f81..f336fc6 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/box.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/box.xml
@@ -35,7 +35,7 @@ box
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/cd.xml b/scilab_doc/Matlab_Scilab_dictionary/cd.xml
index 68d54a6..2723cf8 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/cd.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/cd.xml
@@ -45,7 +45,7 @@ cd
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48Note that <emphasis role="bold">cd ..</emphasis> does not work in Scilab, but it does in Matlab. In Scilab you can use <emphasis role="bold">cd("..")</emphasis>. 48Note that <emphasis role="bold">cd ..</emphasis> does not work in Scilab, but it does in Matlab. In Scilab you can use <emphasis role="bold">cd("..")</emphasis> or <emphasis role="strong"> cd ../ </emphasis>.
49</para> 49</para>
50 </refsection> 50 </refsection>
51</refentry> 51</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/cla.xml b/scilab_doc/Matlab_Scilab_dictionary/cla.xml
index 425c876..38ed593 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/cla.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/cla.xml
@@ -35,7 +35,7 @@ cla
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/clock.xml b/scilab_doc/Matlab_Scilab_dictionary/clock.xml
index 874cb7a..8d90212 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/clock.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/clock.xml
@@ -35,7 +35,7 @@ clock
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/close.xml b/scilab_doc/Matlab_Scilab_dictionary/close.xml
index 8a4ea0a..cfe61e3 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/close.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/close.xml
@@ -35,9 +35,7 @@ close
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38close 38close - xdel - delete
39xdel
40delete
41]]></programlisting> 39]]></programlisting>
42 </td> 40 </td>
43 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/colon.xml b/scilab_doc/Matlab_Scilab_dictionary/colon.xml
index 6a0d5db..1a0ff68 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/colon.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/colon.xml
@@ -12,7 +12,7 @@
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="colon"> 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" version="5.0-subset Scilab" xml:id="colon">
14 <refnamediv> 14 <refnamediv>
15 <refname>colon</refname> 15 <refname>:</refname>
16 <refpurpose>(Matlab function) Colon</refpurpose> 16 <refpurpose>(Matlab function) Colon</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
@@ -46,7 +46,7 @@
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <variablelist> 47 <variablelist>
48 <varlistentry> 48 <varlistentry>
49 <term>Using colon with empty matrices</term> 49 <term>Using colon with empty matrices:</term>
50 <listitem> 50 <listitem>
51 <para> 51 <para>
52In Matlab if almost one operand is an empty matrix, then result is an empty matrix what gives an error message in Scilab. 52In Matlab if almost one operand is an empty matrix, then result is an empty matrix what gives an error message in Scilab.
@@ -54,7 +54,7 @@ In Matlab if almost one operand is an empty matrix, then result is an empty matr
54 </listitem> 54 </listitem>
55 </varlistentry> 55 </varlistentry>
56 <varlistentry> 56 <varlistentry>
57 <term>Using colon with NaNs and Infs</term> 57 <term>Using colon with NaNs and Infs:</term>
58 <listitem> 58 <listitem>
59 <para> 59 <para>
60In Matlab if almost one operand is an empty matrix, then result is a NaN what make Scilab returning an error. 60In Matlab if almost one operand is an empty matrix, then result is a NaN what make Scilab returning an error.
diff --git a/scilab_doc/Matlab_Scilab_dictionary/colordef.xml b/scilab_doc/Matlab_Scilab_dictionary/colordef.xml
index e13d8b1..5137c40 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/colordef.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/colordef.xml
@@ -35,7 +35,7 @@ colordef
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/csc.xml b/scilab_doc/Matlab_Scilab_dictionary/csc.xml
index 45c485f..e82e393 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/csc.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/csc.xml
@@ -35,7 +35,7 @@ csc(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
381 ./sin(A) 38(1) ./sin(A)
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/csch.xml b/scilab_doc/Matlab_Scilab_dictionary/csch.xml
index 6f58f9d..f82e168 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/csch.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/csch.xml
@@ -35,7 +35,7 @@ csch(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
381 ./sinh(A) 38(1) ./sinh(A)
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/cumprod.xml b/scilab_doc/Matlab_Scilab_dictionary/cumprod.xml
index ac291ed..2243250 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/cumprod.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/cumprod.xml
@@ -48,7 +48,7 @@ cumprod
48 <varlistentry> 48 <varlistentry>
49 <term>C = cumprod(A)</term> 49 <term>C = cumprod(A)</term>
50 <listitem> 50 <listitem>
51 <para>If <emphasis role="bold">A</emphasis> is a matrix, <emphasis role="bold">cumprod(A)</emphasis> is equivalent to <emphasis role="bold">cumprod(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="bold">cumprod(A)</emphasis> gives the cumulative product of all the entries of <emphasis role="bold">A</emphasis> taken columnwise. Actually, Matlab works on the first non-singleton dimension and Scilb does not. 51 <para>If <emphasis role="bold">A</emphasis> is a matrix, <emphasis role="bold">cumprod(A)</emphasis> is equivalent to <emphasis role="bold">cumprod(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="bold">cumprod(A)</emphasis> gives the cumulative product of all the entries of <emphasis role="bold">A</emphasis> taken columnwise. Actually, Matlab works on the first non-singleton dimension and Scilab does not.
52</para> 52</para>
53 </listitem> 53 </listitem>
54 </varlistentry> 54 </varlistentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/cumsum.xml b/scilab_doc/Matlab_Scilab_dictionary/cumsum.xml
index 53c5cea..38d18c7 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/cumsum.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/cumsum.xml
@@ -48,7 +48,7 @@ cumsum
48 <varlistentry> 48 <varlistentry>
49 <term>C=cumsum(A)</term> 49 <term>C=cumsum(A)</term>
50 <listitem> 50 <listitem>
51 <para>If A is a matrix, <emphasis role="bold">cumsum(A)</emphasis> is equivalent to <emphasis role="bold">cumsum(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="bold">cumsum(A)</emphasis> gives the cumulative sum of all the entries of <emphasis role="bold">A</emphasis> taken columnwise. Actually, Matlab works on the first non-singleton dimension and Scilb does not. 51 <para>If A is a matrix, <emphasis role="bold">cumsum(A)</emphasis> is equivalent to <emphasis role="bold">cumsum(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="bold">cumsum(A)</emphasis> gives the cumulative sum of all the entries of <emphasis role="bold">A</emphasis> taken columnwise. Actually, Matlab works on the first non-singleton dimension and Scilab does not.
52</para> 52</para>
53 </listitem> 53 </listitem>
54 </varlistentry> 54 </varlistentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/dec2hex.xml b/scilab_doc/Matlab_Scilab_dictionary/dec2hex.xml
index fdcbd5e..4874822 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/dec2hex.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/dec2hex.xml
@@ -46,7 +46,7 @@ dec2hex
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <variablelist> 47 <variablelist>
48 <varlistentry> 48 <varlistentry>
49 <term>Empty matrix input</term> 49 <term>Empty matrix input:</term>
50 <listitem> 50 <listitem>
51 <para> 51 <para>
52In Matlab <emphasis role="bold">dec2hex</emphasis> returns <emphasis role="bold">""</emphasis> when input is <emphasis role="bold">[]</emphasis> but Scilab <emphasis role="bold">dec2hex</emphasis> returns <emphasis role="bold">[]</emphasis>. 52In Matlab <emphasis role="bold">dec2hex</emphasis> returns <emphasis role="bold">""</emphasis> when input is <emphasis role="bold">[]</emphasis> but Scilab <emphasis role="bold">dec2hex</emphasis> returns <emphasis role="bold">[]</emphasis>.
@@ -54,7 +54,7 @@ In Matlab <emphasis role="bold">dec2hex</emphasis> returns <emphasis role="bold"
54 </listitem> 54 </listitem>
55 </varlistentry> 55 </varlistentry>
56 <varlistentry> 56 <varlistentry>
57 <term>Complex inputs</term> 57 <term>Complex inputs:</term>
58 <listitem> 58 <listitem>
59 <para> 59 <para>
60In Matlab <emphasis role="bold">dec2hex</emphasis> automatically removes complex part of input but not in Scilab. 60In Matlab <emphasis role="bold">dec2hex</emphasis> automatically removes complex part of input but not in Scilab.
@@ -62,7 +62,7 @@ In Matlab <emphasis role="bold">dec2hex</emphasis> automatically removes complex
62 </listitem> 62 </listitem>
63 </varlistentry> 63 </varlistentry>
64 <varlistentry> 64 <varlistentry>
65 <term>Two inputs</term> 65 <term>Two inputs:</term>
66 <listitem> 66 <listitem>
67 <para> 67 <para>
68In Matlab <emphasis role="bold">dec2hex</emphasis> can have two inputs, in Scilab <emphasis role="bold">mtlb_dec2hex</emphasis> emulates this case. 68In Matlab <emphasis role="bold">dec2hex</emphasis> can have two inputs, in Scilab <emphasis role="bold">mtlb_dec2hex</emphasis> emulates this case.
diff --git a/scilab_doc/Matlab_Scilab_dictionary/delete.xml b/scilab_doc/Matlab_Scilab_dictionary/delete.xml
index dfca1b8..66e8b47 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/delete.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/delete.xml
@@ -35,8 +35,7 @@ delete
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38mdelete 38mdelete - delete
39delete
40]]></programlisting> 39]]></programlisting>
41 </td> 40 </td>
42 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/diag.xml b/scilab_doc/Matlab_Scilab_dictionary/diag.xml
index e9ed1db..87f39b9 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/diag.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/diag.xml
@@ -71,10 +71,10 @@ B = ['s ';' t ';' r']
71 </td> 71 </td>
72 <td> 72 <td>
73 <programlisting role="example"><![CDATA[ 73 <programlisting role="example"><![CDATA[
74B = diag(``str'') 74B = diag("str")
75B = ``str'' 75B = "str"
76B = mtlb_diag(``str'') 76B = mtlb_diag("str")
77B = [``s ``;'' t ``;'' r''] 77B = ["s ";" t ";" r"]
78]]></programlisting> 78]]></programlisting>
79 </td> 79 </td>
80 </tr> 80 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/diff.xml b/scilab_doc/Matlab_Scilab_dictionary/diff.xml
index 67dbd69..89dfbbc 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/diff.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/diff.xml
@@ -55,13 +55,13 @@ diff
55 <varlistentry> 55 <varlistentry>
56 <term>Y = diff(X,n,dim)</term> 56 <term>Y = diff(X,n,dim)</term>
57 <listitem> 57 <listitem>
58 <para>If dimension given by <emphasis role="bold">dim</emphasis> reaches 1 before <emphasis role="bold">n</emphasis> iterations have been done, Matlab switches to next non-singleton dimension, but Scilab does not, use <emphasis role="bold">mtlb_diff</emphasis> to get equivalent results... 58 <para>If dimension given by <emphasis role="bold">dim</emphasis> reaches 1 before <emphasis role="bold">n</emphasis> iterations have been done, Matlab switches to next non-singleton dimension, but Scilab does not, use <emphasis role="bold">mtlb_diff</emphasis> to get equivalent results.
59</para> 59</para>
60 </listitem> 60 </listitem>
61 </varlistentry> 61 </varlistentry>
62 </variablelist> 62 </variablelist>
63 <para> 63 <para>
64When <emphasis role="bold">n</emphasis> is greater than all existing dimensions of <emphasis role="bold">X</emphasis>, Matlab returns <emphasis role="bold">[]</emphasis> what Scilab may not give for all inputs... 64When <emphasis role="bold">n</emphasis> is greater than all existing dimensions of <emphasis role="bold">X</emphasis>, Matlab returns <emphasis role="bold">[]</emphasis> what Scilab may not give for all inputs.
65</para> 65</para>
66 </refsection> 66 </refsection>
67</refentry> 67</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/docopt.xml b/scilab_doc/Matlab_Scilab_dictionary/docopt.xml
index 81c6a53..43bac0c 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/docopt.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/docopt.xml
@@ -35,7 +35,7 @@ docopt
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -46,7 +46,7 @@ docopt
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48There no Scilab equivalent function, however, information about Web Browser used can be found using global 48There no Scilab equivalent function, however, information about Web Browser used can be found using global
49variable <emphasis role="bold">%browsehelp</emphasis>. Thos variables exists under all platforms. 49variable <emphasis role="bold">%browsehelp</emphasis>. This variable exists under all platforms.
50</para> 50</para>
51 </refsection> 51 </refsection>
52</refentry> 52</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/drawnow.xml b/scilab_doc/Matlab_Scilab_dictionary/drawnow.xml
index a36ac85..f4e3314 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/drawnow.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/drawnow.xml
@@ -35,7 +35,7 @@ drawnow
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/eig.xml b/scilab_doc/Matlab_Scilab_dictionary/eig.xml
index e293976..ce35a5d 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/eig.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/eig.xml
@@ -35,8 +35,7 @@ eig
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38spec 38spec - bdiag
39bdiag
40]]></programlisting> 39]]></programlisting>
41 </td> 40 </td>
42 </tr> 41 </tr>
@@ -47,9 +46,16 @@ bdiag
47 <title>Particular cases</title> 46 <title>Particular cases</title>
48 <variablelist> 47 <variablelist>
49 <varlistentry> 48 <varlistentry>
49 <term>eig(A)</term>
50 <listitem>
51 <para>Scilab equivalent for eig(A) is spec(A). Scilab eigen vector matrix can differ from Matlab one.</para>
52 </listitem>
53 </varlistentry>
54 <variablelist>
55 <varlistentry>
50 <term>eig(A,'nobalance')</term> 56 <term>eig(A,'nobalance')</term>
51 <listitem> 57 <listitem>
52 <para>There is no Scilab equivalent for <emphasis role="bold">'nobalance'</emphasis> option. See examples...</para> 58 <para>There is no Scilab equivalent for <emphasis role="bold">"nobalance"</emphasis> option. See examples.</para>
53 </listitem> 59 </listitem>
54 </varlistentry> 60 </varlistentry>
55 <varlistentry> 61 <varlistentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/elementwise_left_division.xml b/scilab_doc/Matlab_Scilab_dictionary/elementwise_left_division.xml
new file mode 100644
index 0000000..189f749
--- /dev/null
+++ b/scilab_doc/Matlab_Scilab_dictionary/elementwise_left_division.xml
@@ -0,0 +1,51 @@
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
5 *
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
11 *
12 -->
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" version="5.0-subset Scilab" xml:id="elementwise_left_division">
14 <refnamediv>
15 <refname>.\</refname>
16 <refpurpose>(Matlab function) Elementwise left division</refpurpose>
17 </refnamediv>
18 <refsection>
19 <title>Matlab/Scilab equivalent</title>
20 <para>
21 <informaltable border="1" pgwide="1">
22 <tr>
23 <td align="center">
24 <emphasis role="bold">Matlab</emphasis>
25 </td>
26 <td align="center">
27 <emphasis role="bold">Scilab</emphasis>
28 </td>
29 </tr>
30 <tr>
31 <td>
32 <programlisting role="example"><![CDATA[
33.\
34]]></programlisting>
35 </td>
36 <td>
37 <programlisting role="example"><![CDATA[
38.\
39]]></programlisting>
40 </td>
41 </tr>
42 </informaltable>
43 </para>
44 </refsection>
45 <refsection>
46 <title>Particular cases</title>
47 <para>
48WARNING: Expressions like <emphasis role="bold">X.\.23</emphasis> are interpreted in Matlab as the elementwise division of <emphasis role="bold">0.23</emphasis> by <emphasis role="bold">X</emphasis> while Scilab computes the Kronecker left division of <emphasis role="bold">X</emphasis> and <emphasis role="bold">23</emphasis>, to have the same result, insert a blank between <emphasis role="bold">\</emphasis> and <emphasis role="bold">.23</emphasis>
49</para>
50 </refsection>
51</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/elementwise_multiplication.xml b/scilab_doc/Matlab_Scilab_dictionary/elementwise_multiplication.xml
index 4a93c15..66588258 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/elementwise_multiplication.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/elementwise_multiplication.xml
@@ -10,10 +10,10 @@
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt 10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 * 11 *
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="elementwise multiplication"> 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" version="5.0-subset Scilab" xml:id="elementwise_multiplication">
14 <refnamediv> 14 <refnamediv>
15 <refname>elementwise multiplication</refname> 15 <refname>.*</refname>
16 <refpurpose>(Matlab function) Elementwise mutiplication</refpurpose> 16 <refpurpose>(Matlab function) Elementwise multiplication</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
19 <title>Matlab/Scilab equivalent</title> 19 <title>Matlab/Scilab equivalent</title>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/elementwise_power.xml b/scilab_doc/Matlab_Scilab_dictionary/elementwise_power.xml
index fdc861a..6e88080 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/elementwise_power.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/elementwise_power.xml
@@ -10,9 +10,9 @@
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt 10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 * 11 *
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="elementwise power"> 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" version="5.0-subset Scilab" xml:id="elementwise_power">
14 <refnamediv> 14 <refnamediv>
15 <refname>elementwise power</refname> 15 <refname>.^</refname>
16 <refpurpose>(Matlab function) Elementwise exponent</refpurpose> 16 <refpurpose>(Matlab function) Elementwise exponent</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
@@ -45,10 +45,10 @@
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48Note that Matlab seems to have a bug when exposant is a character... 48Note that Matlab seems to have a bug when exposant is a character.
49</para> 49</para>
50 <para> 50 <para>
51WARNING: Expressions like <emphasis role="bold">X.^.23</emphasis> are interpreted in Matlab as <emphasis role="bold">X</emphasis> to the power of <emphasis role="bold">0.23</emphasis> while Scilab executes <emphasis role="bold">X</emphasis> elementwisely powered to <emphasis role="bold">23</emphasis>, to have the same result, inser a blank between ^ and <emphasis role="bold">.23</emphasis> 51WARNING: Expressions like <emphasis role="bold">X.^.23</emphasis> are interpreted in Matlab as <emphasis role="bold">X</emphasis> to the power of <emphasis role="bold">0.23</emphasis> while Scilab executes <emphasis role="bold">X</emphasis> elementwisely powered to <emphasis role="bold">23</emphasis>, to have the same result, insert a blank between ^ and <emphasis role="bold">.23</emphasis>.
52</para> 52</para>
53 </refsection> 53 </refsection>
54</refentry> 54</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/elementwise_right_division.xml b/scilab_doc/Matlab_Scilab_dictionary/elementwise_right_division.xml
index 97502769..6e35f8d 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/elementwise_right_division.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/elementwise_right_division.xml
@@ -10,10 +10,10 @@
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt 10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 * 11 *
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="elementwise right division"> 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" version="5.0-subset Scilab" xml:id="elementwise_right_division">
14 <refnamediv> 14 <refnamediv>
15 <refname>elementwise right division</refname> 15 <refname>./</refname>
16 <refpurpose>(Matlab function) Elementwise left division</refpurpose> 16 <refpurpose>(Matlab function) Elementwise right division</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
19 <title>Matlab/Scilab equivalent</title> 19 <title>Matlab/Scilab equivalent</title>
@@ -30,12 +30,12 @@
30 <tr> 30 <tr>
31 <td> 31 <td>
32 <programlisting role="example"><![CDATA[ 32 <programlisting role="example"><![CDATA[
33.\ 33./
34]]></programlisting> 34]]></programlisting>
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38.\ 38./
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -45,7 +45,7 @@
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48WARNING: Expressions like <emphasis role="bold">X.\.23</emphasis> are interpreted in Matlab as the elementwise division of <emphasis role="bold">0.23</emphasis> by <emphasis role="bold">X</emphasis> while Scilab computes the Kronecker left division of <emphasis role="bold">X</emphasis> and <emphasis role="bold">23</emphasis>, to have the same result, inser a blank between <emphasis role="bold">\</emphasis> and <emphasis role="bold">.23</emphasis> 48WARNING: Expressions like <emphasis role="bold">X./.23</emphasis> are interpreted in Matlab as the elementwise right division of <emphasis role="bold">X</emphasis> by <emphasis role="bold">0.23</emphasis> while Scilab computes the Kronecker right division of <emphasis role="bold">X</emphasis> and <emphasis role="bold">23</emphasis>, to have the same result, insert a blank between <emphasis role="bold">/</emphasis> and <emphasis role="bold">.23</emphasis>
49</para> 49</para>
50 </refsection> 50 </refsection>
51</refentry> 51</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/elementwise_transpose.xml b/scilab_doc/Matlab_Scilab_dictionary/elementwise_transpose.xml
index 2312451..acb7cb3 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/elementwise_transpose.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/elementwise_transpose.xml
@@ -10,9 +10,9 @@
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt 10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 * 11 *
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="elementwise transpose"> 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" version="5.0-subset Scilab" xml:id="elementwise_transpose">
14 <refnamediv> 14 <refnamediv>
15 <refname>elementwise transpose</refname> 15 <refname>.'</refname>
16 <refpurpose>(Matlab function) Elementwise transpose</refpurpose> 16 <refpurpose>(Matlab function) Elementwise transpose</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/equal.xml b/scilab_doc/Matlab_Scilab_dictionary/equal.xml
index 79b86ff..24c4c8d 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/equal.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/equal.xml
@@ -12,7 +12,7 @@
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="equal"> 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" version="5.0-subset Scilab" xml:id="equal">
14 <refnamediv> 14 <refnamediv>
15 <refname>equal</refname> 15 <refname>==</refname>
16 <refpurpose>(Matlab function) Equal to</refpurpose> 16 <refpurpose>(Matlab function) Equal to</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/error.xml b/scilab_doc/Matlab_Scilab_dictionary/error.xml
index 1bea627..e437f2a 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/error.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/error.xml
@@ -45,7 +45,7 @@ error
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48Scilab <emphasis role="bold">error</emphasis> function can only take one character string as input but Matlab function can take more than one character string as input and also numerical values... 48Scilab <emphasis role="bold">error</emphasis> function can only take one character string as input but Matlab function can take more than one character string as input and also numerical values.
49</para> 49</para>
50 </refsection> 50 </refsection>
51</refentry> 51</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/eval.xml b/scilab_doc/Matlab_Scilab_dictionary/eval.xml
index f8361a3..f028c49 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/eval.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/eval.xml
@@ -35,8 +35,7 @@ eval
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38evstr 38evstr - execstr
39execstr
40]]></programlisting> 39]]></programlisting>
41 </td> 40 </td>
42 </tr> 41 </tr>
@@ -47,7 +46,7 @@ execstr
47 <title>Particular cases</title> 46 <title>Particular cases</title>
48 <variablelist> 47 <variablelist>
49 <varlistentry> 48 <varlistentry>
50 <term>Expression</term> 49 <term>Expression:</term>
51 <listitem> 50 <listitem>
52 <para> 51 <para>
53When <emphasis role="bold">eval</emphasis> has to execute an expression then Scilab equivalent for <emphasis role="bold">eval</emphasis> is <emphasis role="bold">evstr</emphasis> 52When <emphasis role="bold">eval</emphasis> has to execute an expression then Scilab equivalent for <emphasis role="bold">eval</emphasis> is <emphasis role="bold">evstr</emphasis>
@@ -55,7 +54,7 @@ When <emphasis role="bold">eval</emphasis> has to execute an expression then Sci
55 </listitem> 54 </listitem>
56 </varlistentry> 55 </varlistentry>
57 <varlistentry> 56 <varlistentry>
58 <term>Instruction</term> 57 <term>Instruction:</term>
59 <listitem> 58 <listitem>
60 <para> 59 <para>
61When <emphasis role="bold">eval</emphasis> has to execute an instruction with just one output value then Scilab equivalent for <emphasis role="bold">eval</emphasis> is <emphasis role="bold">evstr</emphasis>. If instruction has more than one output value then <emphasis role="bold">execstr</emphasis> has to be used as follows. 60When <emphasis role="bold">eval</emphasis> has to execute an instruction with just one output value then Scilab equivalent for <emphasis role="bold">eval</emphasis> is <emphasis role="bold">evstr</emphasis>. If instruction has more than one output value then <emphasis role="bold">execstr</emphasis> has to be used as follows.
@@ -90,10 +89,10 @@ eval('1+1','1+2')
90 </td> 89 </td>
91 <td> 90 <td>
92 <programlisting role="example"><![CDATA[ 91 <programlisting role="example"><![CDATA[
93evstr('1+1') 92evstr("1+1")
94x = evstr('1+1') 93x = evstr("1+1")
95execstr('[d1,d2]=size(1)') 94execstr("[d1,d2]=size(1)")
96execstr('[d1,d2]=size(1)') 95execstr("[d1,d2]=size(1)")
97if execstr("1+1","errcatch") then execstr("1+2");end 96if execstr("1+1","errcatch") then execstr("1+2");end
98]]></programlisting> 97]]></programlisting>
99 </td> 98 </td>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/exist.xml b/scilab_doc/Matlab_Scilab_dictionary/exist.xml
index 0f21a75..f2946cb 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/exist.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/exist.xml
@@ -45,10 +45,10 @@ exist
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48Scilab <emphasis role="bold">exist</emphasis> function only works for variables, not for M-files or else... 48Scilab <emphasis role="bold">exist</emphasis> function only works for variables, not for M-files or else.
49</para> 49</para>
50 <para> 50 <para>
51Scilab <emphasis role="bold">mtlb_exist</emphasis> function is a partial emulation for Matlab <emphasis role="bold">exist</emphasis> 51Scilab <emphasis role="bold">mtlb_exist</emphasis> function is a partial emulation for Matlab <emphasis role="bold">exist</emphasis>.
52</para> 52</para>
53 </refsection> 53 </refsection>
54</refentry> 54</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/false.xml b/scilab_doc/Matlab_Scilab_dictionary/false.xml
index 6ffd5a7..e6fb15c 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/false.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/false.xml
@@ -35,7 +35,7 @@ false
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/ferror.xml b/scilab_doc/Matlab_Scilab_dictionary/ferror.xml
index 686ff76..643ca3f 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/ferror.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/ferror.xml
@@ -35,8 +35,7 @@ ferror
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38mclearerr 38mclearerr - merror
39merror
40]]></programlisting> 39]]></programlisting>
41 </td> 40 </td>
42 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/feval.xml b/scilab_doc/Matlab_Scilab_dictionary/feval.xml
index 64db9dd..2263954 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/feval.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/feval.xml
@@ -35,8 +35,7 @@ feval
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38evstr 38evstr - execstr
39execstr
40]]></programlisting> 39]]></programlisting>
41 </td> 40 </td>
42 </tr> 41 </tr>
@@ -47,7 +46,7 @@ execstr
47 <title>Particular cases</title> 46 <title>Particular cases</title>
48 <variablelist> 47 <variablelist>
49 <varlistentry> 48 <varlistentry>
50 <term>One output</term> 49 <term>One output:</term>
51 <listitem> 50 <listitem>
52 <para> 51 <para>
53In this case Scilab <emphasis role="bold">evstr</emphasis> is an equivalent to <emphasis role="bold">feval</emphasis>, after modifying inputs such as in examples below. 52In this case Scilab <emphasis role="bold">evstr</emphasis> is an equivalent to <emphasis role="bold">feval</emphasis>, after modifying inputs such as in examples below.
@@ -55,7 +54,7 @@ In this case Scilab <emphasis role="bold">evstr</emphasis> is an equivalent to <
55 </listitem> 54 </listitem>
56 </varlistentry> 55 </varlistentry>
57 <varlistentry> 56 <varlistentry>
58 <term>More than one output</term> 57 <term>More than one output:</term>
59 <listitem> 58 <listitem>
60 <para> 59 <para>
61In this case Scilab <emphasis role="bold">execstr</emphasis> is an equivalent to <emphasis role="bold">feval</emphasis>, after modifying inputs such as in examples below. 60In this case Scilab <emphasis role="bold">execstr</emphasis> is an equivalent to <emphasis role="bold">feval</emphasis>, after modifying inputs such as in examples below.
diff --git a/scilab_doc/Matlab_Scilab_dictionary/fftshift.xml b/scilab_doc/Matlab_Scilab_dictionary/fftshift.xml
index 826a8d5..e53d15b 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/fftshift.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/fftshift.xml
@@ -83,10 +83,10 @@ Y = 'rst'
83 </td> 83 </td>
84 <td> 84 <td>
85 <programlisting role="example"><![CDATA[ 85 <programlisting role="example"><![CDATA[
86Y = fftshift('str') 86Y = fftshift("str")
87Y = 'str' 87Y = "str"
88Y = mtlb_fftshift('str') 88Y = mtlb_fftshift("str")
89Y = 'rst' 89Y = "rst"
90]]></programlisting> 90]]></programlisting>
91 </td> 91 </td>
92 </tr> 92 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/filesep.xml b/scilab_doc/Matlab_Scilab_dictionary/filesep.xml
index 85469c4..17b4a43 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/filesep.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/filesep.xml
@@ -35,7 +35,7 @@ filesep
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/findstr.xml b/scilab_doc/Matlab_Scilab_dictionary/findstr.xml
index f7e5a68..bf88d51 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/findstr.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/findstr.xml
@@ -35,7 +35,7 @@ findstr
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/fopen.xml b/scilab_doc/Matlab_Scilab_dictionary/fopen.xml
index d56efed..d07a0b8 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/fopen.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/fopen.xml
@@ -46,7 +46,7 @@ mopen
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <variablelist> 47 <variablelist>
48 <varlistentry> 48 <varlistentry>
49 <term>Access permission</term> 49 <term>Access permission:</term>
50 <listitem> 50 <listitem>
51 <para> 51 <para>
52Matlab offers two permissions options not supported by Scilab: <emphasis role="bold">W</emphasis> and <emphasis role="bold">A</emphasis> (for tape drives) 52Matlab offers two permissions options not supported by Scilab: <emphasis role="bold">W</emphasis> and <emphasis role="bold">A</emphasis> (for tape drives)
@@ -54,7 +54,7 @@ Matlab offers two permissions options not supported by Scilab: <emphasis role="b
54 </listitem> 54 </listitem>
55 </varlistentry> 55 </varlistentry>
56 <varlistentry> 56 <varlistentry>
57 <term>Input values</term> 57 <term>Input values:</term>
58 <listitem> 58 <listitem>
59 <para> 59 <para>
60In Matlab, <emphasis role="bold">fopen('all')</emphasis> lists all opened files, in Scilab, this type of call for <emphasis role="bold">fopen</emphasis> does not exist. You can also use <emphasis role="bold">fopen</emphasis> in Matlab to get informations on a file identifier (<emphasis role="bold">fopen(fid)</emphasis>), this case is not implemented in Scilab. 60In Matlab, <emphasis role="bold">fopen('all')</emphasis> lists all opened files, in Scilab, this type of call for <emphasis role="bold">fopen</emphasis> does not exist. You can also use <emphasis role="bold">fopen</emphasis> in Matlab to get informations on a file identifier (<emphasis role="bold">fopen(fid)</emphasis>), this case is not implemented in Scilab.
@@ -62,7 +62,7 @@ In Matlab, <emphasis role="bold">fopen('all')</emphasis> lists all opened files,
62 </listitem> 62 </listitem>
63 </varlistentry> 63 </varlistentry>
64 <varlistentry> 64 <varlistentry>
65 <term>Machine format</term> 65 <term>Machine format:</term>
66 <listitem> 66 <listitem>
67 <para> 67 <para>
68Note that Scilab does not support machine format values as input or output. 68Note that Scilab does not support machine format values as input or output.
diff --git a/scilab_doc/Matlab_Scilab_dictionary/for.xml b/scilab_doc/Matlab_Scilab_dictionary/for.xml
index 975d9e0..3e0bce1 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/for.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/for.xml
@@ -45,7 +45,7 @@ for
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48The variable used as loop index is clear in Scilab if all iterations have been made but is not clear if llop is ended by a break. In Matlab, this variable is never cleared. 48The variable used as loop index is clear in Scilab if all iterations have been made but is not clear if loop is ended by a break. In Matlab, this variable is never cleared.
49</para> 49</para>
50 </refsection> 50 </refsection>
51</refentry> 51</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/format.xml b/scilab_doc/Matlab_Scilab_dictionary/format.xml
index c64d7b2..72f95e6 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/format.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/format.xml
@@ -50,51 +50,73 @@ Some Matlab formats have no Scilab equivalent, see examples below.
50 </refsection> 50 </refsection>
51 <refsection> 51 <refsection>
52 <title>Examples</title> 52 <title>Examples</title>
53 <informaltable border="1" pgwide="1"> 53 <para>Some Matlab formats have no Scilab equivalent, see examples below.</para>
54
55 <table>
56 <caption/>
57 <tbody>
54 <tr> 58 <tr>
55 <td align="center"> 59 <td>
56 <emphasis role="bold">Matlab</emphasis> 60 <para><emphasis role="strong">Equivalence table</emphasis></para>
57 </td>
58 <td align="center">
59 <emphasis role="bold">Scilab</emphasis>
60 </td> 61 </td>
61 </tr> 62 </tr>
62 <tr> 63 <tr>
63 <td> 64 <td><para> Matlab </para></td>
64 <programlisting role="example"><![CDATA[ 65 <td><para> Scilab </para></td>
65format 66 </tr>
66format + 67 <tr>
67format bank 68 <td><para> format </para></td>
68format compact 69 <td><para> format("v",6) </para></td>
69format hex 70 </tr>
70format long 71 <tr>
71format long e 72 <td><para> format + </para></td>
72format long g 73 <td><para> format(6) </para></td>
73format loose 74 </tr>
74format rat 75 <tr>
75format short 76 <td><para> format bank </para></td>
76format short e 77 <td><para> No equivalent for: format "bank" </para></td>
77format short g 78 </tr>
78]]></programlisting> 79 <tr>
79 </td> 80 <td><para> format compact </para></td>
80 <td> 81 <td><para> No equivalent for: format "compact" </para></td>
81 <programlisting role="example"><![CDATA[ 82 </tr>
82format("v",6) 83 <tr>
83format(6) 84 <td><para> format hex </para></td>
84No equivalent for: format "bank" 85 <td><para> No equivalent for: format "hex" </para></td>
85No equivalent for: format "compact" 86 </tr>
86No equivalent for: format "hex" 87 <tr>
87format(16) 88 <td><para> format long </para></td>
88format("e",16) 89 <td><para> format(16) </para></td>
89format("e",16) 90 </tr>
90No equivalent for: format "loose" 91 <tr>
91No equivalent for: format "rat" 92 <td><para> format long e </para></td>
92format(6) 93 <td><para> format("e",16) </para></td>
93format("e",6) 94 </tr>
94format("e",6) 95 <tr>
95]]></programlisting> 96 <td><para> format long g </para></td>
96 </td> 97 <td><para> format("e",16) </para></td>
98 </tr>
99 <tr>
100 <td><para> format loose </para></td>
101 <td><para> No equivalent for: format "loose" </para></td>
102 </tr>
103 <tr>
104 <td><para> format rat </para></td>
105 <td><para> No equivalent for: format "rat" </para></td>
106 </tr>
107 <tr>
108 <td><para> format short </para></td>
109 <td><para> format(6) </para></td>
110 </tr>
111 <tr>
112 <td><para> format short e </para></td>
113 <td><para> format("e",6) </para></td>
114 </tr>
115 <tr>
116 <td><para> format short g </para></td>
117 <td><para> format("e",6) </para></td>
97 </tr> 118 </tr>
98 </informaltable> 119 </tbody>
120 </table>
99 </refsection> 121 </refsection>
100</refentry> 122</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/fprintf.xml b/scilab_doc/Matlab_Scilab_dictionary/fprintf.xml
index ebc6349..308c6f3 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/fprintf.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/fprintf.xml
@@ -35,7 +35,7 @@ fprintf
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -45,7 +45,7 @@ fprintf
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48There is no equivalent function for Matlab <emphasis role="bold">fprintf</emphasis> in Scilab but an emulation function has been written: <emphasis role="bold">mtlb_fprintf</emphasis>. This function probably not allows all Matlab <emphasis role="bold">fprintf</emphasis> possibilities... 48There is no equivalent function for Matlab <emphasis role="bold">fprintf</emphasis> in Scilab but an emulation function has been written: <emphasis role="bold">mtlb_fprintf</emphasis>. This function probably not allows all Matlab <emphasis role="bold">fprintf</emphasis> possibilities.
49</para> 49</para>
50 </refsection> 50 </refsection>
51</refentry> 51</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/fread.xml b/scilab_doc/Matlab_Scilab_dictionary/fread.xml
index 4ea4b0b..80c0fa3 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/fread.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/fread.xml
@@ -35,7 +35,7 @@ fread
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/fscanf.xml b/scilab_doc/Matlab_Scilab_dictionary/fscanf.xml
index 3273875..8da265c 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/fscanf.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/fscanf.xml
@@ -35,7 +35,7 @@ fscanf
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -45,7 +45,7 @@ fscanf
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48There is no equivalent function for Matlab <emphasis role="bold">fscanf</emphasis> in Scilab but an emulation function has been written: <emphasis role="bold">mtlb_fscanf</emphasis>. This function probably not allows all Matlab <emphasis role="bold">fscanf</emphasis> possibilities... 48There is no equivalent function for Matlab <emphasis role="bold">fscanf</emphasis> in Scilab but an emulation function has been written: <emphasis role="bold">mtlb_fscanf</emphasis>. This function probably not allows all Matlab <emphasis role="bold">fscanf</emphasis> possibilities.
49</para> 49</para>
50 </refsection> 50 </refsection>
51</refentry> 51</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/fseek.xml b/scilab_doc/Matlab_Scilab_dictionary/fseek.xml
index 563fd51..274c8a1 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/fseek.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/fseek.xml
@@ -45,7 +45,7 @@ mseek
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48Scilab and Matlab functions differ by the flag which indicate the origin of the position indicator, see examples below. Note that order of input value is different... 48Scilab and Matlab functions differ by the flag which indicate the origin of the position indicator, see examples below. Note that order of input value is different.
49</para> 49</para>
50 </refsection> 50 </refsection>
51 <refsection> 51 <refsection>
@@ -62,24 +62,24 @@ Scilab and Matlab functions differ by the flag which indicate the origin of the
62 <tr> 62 <tr>
63 <td> 63 <td>
64 <programlisting role="example"><![CDATA[ 64 <programlisting role="example"><![CDATA[
65File beginning: 65% File beginning:
66fseek(fid,offset,'bof') 66fseek(fid,offset,'bof')
67fseek(fid,offset,-1) 67fseek(fid,offset,-1)
68Current position: 68% Current position:
69fseek(fid,offset,'cof') 69fseek(fid,offset,'cof')
70fseek(fid,offset,0) 70fseek(fid,offset,0)
71File end: 71% File end:
72fseek(fid,offset,'eof') 72fseek(fid,offset,'eof')
73fseek(fid,offset,1) 73fseek(fid,offset,1)
74]]></programlisting> 74]]></programlisting>
75 </td> 75 </td>
76 <td> 76 <td>
77 <programlisting role="example"><![CDATA[ 77 <programlisting role="example"><![CDATA[
78File beginning: 78// File beginning:
79fseek(offset,fid,"set") 79fseek(offset,fid,"set")
80Current position: 80// Current position:
81fseek(offset,fid,"cur") 81fseek(offset,fid,"cur")
82File end: 82// File end:
83fseek(offset,fid,"end") 83fseek(offset,fid,"end")
84]]></programlisting> 84]]></programlisting>
85 </td> 85 </td>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/fwrite.xml b/scilab_doc/Matlab_Scilab_dictionary/fwrite.xml
index 6a16117..59ad43a 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/fwrite.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/fwrite.xml
@@ -35,7 +35,7 @@ fwrite
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/graymon.xml b/scilab_doc/Matlab_Scilab_dictionary/graymon.xml
index c6cca9c..95bd33c 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/graymon.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/graymon.xml
@@ -35,7 +35,7 @@ graymon
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/great.xml b/scilab_doc/Matlab_Scilab_dictionary/great.xml
index a6da8ed..7fb12f4 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/great.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/great.xml
@@ -12,7 +12,7 @@
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="great"> 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" version="5.0-subset Scilab" xml:id="great">
14 <refnamediv> 14 <refnamediv>
15 <refname>great</refname> 15 <refname>></refname>
16 <refpurpose>(Matlab function) Greater than</refpurpose> 16 <refpurpose>(Matlab function) Greater than</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/great_equal.xml b/scilab_doc/Matlab_Scilab_dictionary/great_equal.xml
index cfa93b4..a3465c1 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/great_equal.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/great_equal.xml
@@ -10,9 +10,9 @@
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt 10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 * 11 *
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="great equal"> 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" version="5.0-subset Scilab" xml:id="great_equal">
14 <refnamediv> 14 <refnamediv>
15 <refname>great equal</refname> 15 <refname>&gt;=</refname>
16 <refpurpose>(Matlab function) Greater or equal to</refpurpose> 16 <refpurpose>(Matlab function) Greater or equal to</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/grid.xml b/scilab_doc/Matlab_Scilab_dictionary/grid.xml
index 0b7fd5d..92815d4 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/grid.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/grid.xml
@@ -35,7 +35,7 @@ grid
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -80,21 +80,21 @@ There is no equivalent function for Matlab <emphasis role="bold">grid</emphasis>
80 </listitem> 80 </listitem>
81 </varlistentry> 81 </varlistentry>
82 <varlistentry> 82 <varlistentry>
83 <term>grid(axes_handle,'on')</term> 83 <term>grid(axes_handle,"on")</term>
84 <listitem> 84 <listitem>
85 <para> may be replaced by <emphasis role="bold">axes_handle.grid=[1 1]</emphasis> 85 <para> may be replaced by <emphasis role="bold">axes_handle.grid=[1 1]</emphasis>
86</para> 86</para>
87 </listitem> 87 </listitem>
88 </varlistentry> 88 </varlistentry>
89 <varlistentry> 89 <varlistentry>
90 <term>grid(axes_handle,'off')</term> 90 <term>grid(axes_handle,"off")</term>
91 <listitem> 91 <listitem>
92 <para> may be replaced by <emphasis role="bold">axes_handle.grid=[-1 -1]</emphasis> 92 <para> may be replaced by <emphasis role="bold">axes_handle.grid=[-1 -1]</emphasis>
93</para> 93</para>
94 </listitem> 94 </listitem>
95 </varlistentry> 95 </varlistentry>
96 <varlistentry> 96 <varlistentry>
97 <term>grid(axes_handle,'minor')</term> 97 <term>grid(axes_handle,"minor")</term>
98 <listitem> 98 <listitem>
99 <para> can be emuled in Scilab by <emphasis role="bold">mtlb_hold</emphasis> but all grids are toggled 99 <para> can be emuled in Scilab by <emphasis role="bold">mtlb_hold</emphasis> but all grids are toggled
100</para> 100</para>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/help.xml b/scilab_doc/Matlab_Scilab_dictionary/help.xml
index 6cf696b..c10b5b1 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/help.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/help.xml
@@ -45,7 +45,7 @@ help
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48In Scilab you can not get help on a toolbox, only on a function... 48In Scilab you can not get help on a toolbox, only on a function.
49</para> 49</para>
50 <para> 50 <para>
51Scilab equivalent for Matlab <emphasis role="bold">help syntax</emphasis> is <emphasis role="bold">help("names")</emphasis>. 51Scilab equivalent for Matlab <emphasis role="bold">help syntax</emphasis> is <emphasis role="bold">help("names")</emphasis>.
diff --git a/scilab_doc/Matlab_Scilab_dictionary/hold.xml b/scilab_doc/Matlab_Scilab_dictionary/hold.xml
index dcb9644..b851cb3 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/hold.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/hold.xml
@@ -35,7 +35,7 @@ hold
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/horzcat.xml b/scilab_doc/Matlab_Scilab_dictionary/horzcat.xml
index 4a81438..03ecbf8 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/horzcat.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/horzcat.xml
@@ -35,7 +35,7 @@ horzcat
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/ifft.xml b/scilab_doc/Matlab_Scilab_dictionary/ifft.xml
index f7942ba..b45f3cb 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/ifft.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/ifft.xml
@@ -46,14 +46,14 @@ fft(A,1[,...])
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <variablelist> 47 <variablelist>
48 <varlistentry> 48 <varlistentry>
49 <term>Y = ifft(X)</term> 49 <term>Y = ifft(X):</term>
50 <listitem> 50 <listitem>
51 <para>If X is a vector then Scilab equivalent for Matlab <emphasis role="bold">ifft(X)</emphasis> is <emphasis role="bold">fft(X,1)</emphasis>. If <emphasis role="bold">X</emphasis> is a matrix then Scilab equivalent for Matlab <emphasis role="bold">ifft(X)</emphasis> is <emphasis role="bold">fft(X,1,2,1)</emphasis>. 51 <para>If X is a vector then Scilab equivalent for Matlab <emphasis role="bold">ifft(X)</emphasis> is <emphasis role="bold">fft(X,1)</emphasis>. If <emphasis role="bold">X</emphasis> is a matrix then Scilab equivalent for Matlab <emphasis role="bold">ifft(X)</emphasis> is <emphasis role="bold">fft(X,1,2,1)</emphasis>.
52</para> 52</para>
53 </listitem> 53 </listitem>
54 </varlistentry> 54 </varlistentry>
55 <varlistentry> 55 <varlistentry>
56 <term>Y = ifft(X,n) / Y = ifft(X,n,dim) / Y = ifft(X,[],dim)</term> 56 <term>Y = ifft(X,n) / Y = ifft(X,n,dim) / Y = ifft(X,[],dim):</term>
57 <listitem> 57 <listitem>
58 <para>There is no Scilab equivalent for all these Matlab uses of <emphasis role="bold">ifft</emphasis>, in these cases, use <emphasis role="bold">mtlb_ifft</emphasis> instead. 58 <para>There is no Scilab equivalent for all these Matlab uses of <emphasis role="bold">ifft</emphasis>, in these cases, use <emphasis role="bold">mtlb_ifft</emphasis> instead.
59</para> 59</para>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/isa.xml b/scilab_doc/Matlab_Scilab_dictionary/isa.xml
index a0863a1..a486108 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/isa.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/isa.xml
@@ -17,90 +17,86 @@
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
19 <title>Matlab/Scilab equivalent</title> 19 <title>Matlab/Scilab equivalent</title>
20 <para> 20 <para>There is no equivalent function for Matlab <emphasis role="strong">isa</emphasis>
21 <informaltable border="1" pgwide="1"> 21 function in Scilab but it can be replaced by equivalent syntaxes as shown is examples.</para>
22
23 <table>
24 <caption/>
25 <tbody>
22 <tr> 26 <tr>
23 <td align="center"> 27 <td>
24 <emphasis role="bold">Matlab</emphasis> 28 <para><emphasis role="strong">Equivalence table</emphasis></para>
25 </td>
26 <td align="center">
27 <emphasis role="bold">Scilab</emphasis>
28 </td> 29 </td>
29 </tr> 30 </tr>
30 <tr> 31 <tr>
31 <td> 32 <td><para> Matlab </para></td>
32 <programlisting role="example"><![CDATA[ 33 <td><para> Scilab </para></td>
33isa
34]]></programlisting>
35 </td>
36 <td>
37 <programlisting role="example"><![CDATA[
38
39]]></programlisting>
40 </td>
41 </tr> 34 </tr>
42 </informaltable> 35 <tr>
43 </para> 36 <td><para> a = isa(x,"logical") </para></td>
44 </refsection> 37 <td><para>a = type(x)==4; </para></td>
45 <refsection> 38 </tr>
46 <title>Particular cases</title> 39 <tr>
47 <para> 40 <td><para> b = isa(x,"char") </para></td>
48There is no equivalent function for Matlab <emphasis role="bold">isa</emphasis> function in Scilab but it can be replaced by equivalent syntaxes as shown is examples. 41 <td><para>b = type(x)==10; </para></td>
49</para> 42 </tr>
50 </refsection> 43 <tr>
51 <refsection> 44 <td><para> c = isa(x,"numeric") </para></td>
52 <title>Examples</title> 45 <td><para>c = or(type(x)==[1,5,8]); </para></td>
53 <informaltable border="1" pgwide="1"> 46 </tr>
54 <tr> 47 <tr>
55 <td align="center"> 48 <td><para> d = isa(x,"int8") </para></td>
56 <emphasis role="bold">Matlab</emphasis> 49 <td><para>d = typeof(x)=='int8'; </para></td>
57 </td> 50 </tr>
58 <td align="center"> 51 <tr>
59 <emphasis role="bold">Scilab</emphasis> 52 <td><para> e = isa(x,"uint8") </para></td>
60 </td> 53 <td><para>e = typeof(x)=='uint8'; </para></td>
61 </tr> 54 </tr>
62 <tr> 55 <tr>
63 <td> 56 <td><para> f = isa(x,"int16") </para></td>
64 <programlisting role="example"><![CDATA[ 57 <td><para>f = typeof(x)=="int16"; </para></td>
65a = isa(x,'logical') 58 </tr>
66b = isa(x,'char') 59 <tr>
67c = isa(x,'numeric') 60 <td><para> g = isa(x,"uint16") </para></td>
68d = isa(x,'int8') 61 <td><para>g = typeof(x)=="uint16"; </para></td>
69e = isa(x,'uint8') 62 </tr>
70f = isa(x,'int16') 63 <tr>
71g = isa(x,'uint16') 64 <td><para> h = isa(x,"int32") </para></td>
72h = isa(x,'int32') 65 <td><para>h = typeof(x)=="int32"; </para></td>
73k = isa(x,'uint32') 66 </tr>
74l = isa(x,'single') 67 <tr>
75m = isa(x,'double') 68 <td><para> k = isa(x,"uint32") </para></td>
76n = isa(x,'cell') 69 <td><para>k = typeof(x)=="uint32"; </para></td>
77o = isa(x,'struct') 70 </tr>
78p = isa(x,'function_handle') 71 <tr>
79q = isa(x,'sparse') 72 <td><para> l = isa(x,"single") </para></td>
80r = isa(x,'lti') 73 <td><para>l = type(x)==1; </para></td>
81]]></programlisting> 74 </tr>
82 </td> 75 <tr>
83 <td> 76 <td><para> m = isa(x,"double") </para></td>
84 <programlisting role="example"><![CDATA[ 77 <td><para>m = type(x)==1; </para></td>
85a = type(x)==4; 78 </tr>
86b = type(x)==10; 79 <tr>
87c = or(type(x)==[1,5,8]); 80 <td><para> n = isa(x,"cell") </para></td>
88d = typeof(x)=="int8"; 81 <td><para>n = typeof(x)=="ce"; </para></td>
89e = typeof(x)=="uint8"; 82 </tr>
90f = typeof(x)=="int16"; 83 <tr>
91g = typeof(x)=="uint16"; 84 <td><para> o = isa(x,"struct") </para></td>
92h = typeof(x)=="int32"; 85 <td><para>o = typeof(x)=="st"; </para></td>
93k = typeof(x)=="uint32"; 86 </tr>
94l = type(x)==1; 87 <tr>
95m = type(x)==1; 88 <td><para> p = isa(x,"function_handle") </para></td>
96n = typeof(x)=="ce"; 89 <td><para>p = type(x)==13; </para></td>
97o = typeof(x)=="st"; 90 </tr>
98p = type(x)==13; 91 <tr>
99q = type(x)==5; 92 <td><para> q = isa(x,"sparse") </para></td>
100r = typeof(x)=="state-space"; 93 <td><para>q = type(x)==5; </para></td>
101]]></programlisting> 94 </tr>
102 </td> 95 <tr>
103 </tr> 96 <td><para> r = isa(x,"lti") </para></td>
104 </informaltable> 97 <td><para>r = typeof(x)=="state-space"; </para></td>
98 </tr>
99 </tbody>
100 </table>
105 </refsection> 101 </refsection>
106</refentry> 102</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/isfield.xml b/scilab_doc/Matlab_Scilab_dictionary/isfield.xml
index 5198e2f..0226491 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/isfield.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/isfield.xml
@@ -35,7 +35,7 @@ isfield
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -49,7 +49,7 @@ There is no Scilab equivalent function for Matlab <emphasis role="bold">tf=isfie
49</para> 49</para>
50 <variablelist> 50 <variablelist>
51 <varlistentry> 51 <varlistentry>
52 <term>If A is not a structure and/or field is not a character string</term> 52 <term>If A is not a structure and/or field is not a character string:</term>
53 <listitem> 53 <listitem>
54 <para> 54 <para>
55Scilab equivalent is <emphasis role="bold">%F</emphasis>. 55Scilab equivalent is <emphasis role="bold">%F</emphasis>.
@@ -57,7 +57,7 @@ Scilab equivalent is <emphasis role="bold">%F</emphasis>.
57 </listitem> 57 </listitem>
58 </varlistentry> 58 </varlistentry>
59 <varlistentry> 59 <varlistentry>
60 <term>If A is a structure and field is a character string</term> 60 <term>If A is a structure and field is a character string:</term>
61 <listitem> 61 <listitem>
62 <para> 62 <para>
63Scilab equivalent is <emphasis role="bold">allfields=getfield(1,A);tf=or(allfields(3:$)==field);</emphasis>. 63Scilab equivalent is <emphasis role="bold">allfields=getfield(1,A);tf=or(allfields(3:$)==field);</emphasis>.
diff --git a/scilab_doc/Matlab_Scilab_dictionary/isfinite.xml b/scilab_doc/Matlab_Scilab_dictionary/isfinite.xml
index 85bfea3..073a6e4 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/isfinite.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/isfinite.xml
@@ -35,7 +35,7 @@ isfinite
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/ishold.xml b/scilab_doc/Matlab_Scilab_dictionary/ishold.xml
index 9cb7e76..6807ddc 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/ishold.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/ishold.xml
@@ -35,7 +35,7 @@ ishold
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/isletter.xml b/scilab_doc/Matlab_Scilab_dictionary/isletter.xml
index 2c7a8f1..013652b 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/isletter.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/isletter.xml
@@ -35,7 +35,7 @@ isletter
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -67,9 +67,9 @@ tf = isletter(A)
67 </td> 67 </td>
68 <td> 68 <td>
69 <programlisting role="example"><![CDATA[ 69 <programlisting role="example"><![CDATA[
70If A is a String matrix: 70// If A is a String matrix:
71tf = ((asciimat(A)&gt;=65) &amp; (asciimat(A)&lt;=90)) | ((asciimat(A)&gt;=97) &amp; (asciimat(A)&lt;=122)) 71tf = ((asciimat(A)&gt;=65) &amp; (asciimat(A)&lt;=90)) | ((asciimat(A)&gt;=97) &amp; (asciimat(A)&lt;=122))
72If A is not a String matrix: 72// If A is not a String matrix:
73tf = zeros(A) 73tf = zeros(A)
74]]></programlisting> 74]]></programlisting>
75 </td> 75 </td>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/islogical.xml b/scilab_doc/Matlab_Scilab_dictionary/islogical.xml
index 0c5b22e..f34f706 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/islogical.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/islogical.xml
@@ -35,7 +35,7 @@ islogical(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/isnumeric.xml b/scilab_doc/Matlab_Scilab_dictionary/isnumeric.xml
index 16b693d..311bb98 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/isnumeric.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/isnumeric.xml
@@ -35,7 +35,7 @@ isnumeric(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/isspace.xml b/scilab_doc/Matlab_Scilab_dictionary/isspace.xml
index b2f317f..102f261 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/isspace.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/isspace.xml
@@ -35,7 +35,7 @@ isspace
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -67,9 +67,9 @@ tf = isspace(A)
67 </td> 67 </td>
68 <td> 68 <td>
69 <programlisting role="example"><![CDATA[ 69 <programlisting role="example"><![CDATA[
70If A is a String matrix: 70// If A is a String matrix:
71tf = asciimat(A)==32 71tf = asciimat(A)==32
72If A is not a String matrix: 72// If A is not a String matrix:
73tf = zeros(A) 73tf = zeros(A)
74]]></programlisting> 74]]></programlisting>
75 </td> 75 </td>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/issparse.xml b/scilab_doc/Matlab_Scilab_dictionary/issparse.xml
index 8da8162..e3bfa11 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/issparse.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/issparse.xml
@@ -35,7 +35,7 @@ issparse(S)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/isvector.xml b/scilab_doc/Matlab_Scilab_dictionary/isvector.xml
index 4880080..b56bb54 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/isvector.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/isvector.xml
@@ -35,7 +35,7 @@ isvector
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -49,7 +49,7 @@ There is no Scilab equivalent function for Matlab <emphasis role="bold">tf=isvec
49</para> 49</para>
50 <variablelist> 50 <variablelist>
51 <varlistentry> 51 <varlistentry>
52 <term>If A is not a character string</term> 52 <term>If A is not a character string:</term>
53 <listitem> 53 <listitem>
54 <para> 54 <para>
55Scilab equivalent is <emphasis role="bold">tf = size(A,1)==1 | size(A,2)==1</emphasis>. 55Scilab equivalent is <emphasis role="bold">tf = size(A,1)==1 | size(A,2)==1</emphasis>.
@@ -57,7 +57,7 @@ Scilab equivalent is <emphasis role="bold">tf = size(A,1)==1 | size(A,2)==1</emp
57 </listitem> 57 </listitem>
58 </varlistentry> 58 </varlistentry>
59 <varlistentry> 59 <varlistentry>
60 <term>If A is a character string</term> 60 <term>If A is a character string:</term>
61 <listitem> 61 <listitem>
62 <para> 62 <para>
63Scilab equivalent is <emphasis role="bold">tf = size(asciimat(A),1)==1 | size(asciimat(A),2)==1</emphasis>. 63Scilab equivalent is <emphasis role="bold">tf = size(asciimat(A),1)==1 | size(asciimat(A),2)==1</emphasis>.
diff --git a/scilab_doc/Matlab_Scilab_dictionary/left_division.xml b/scilab_doc/Matlab_Scilab_dictionary/left_division.xml
index 5d7b814..cd26a18 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/left_division.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/left_division.xml
@@ -10,9 +10,9 @@
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt 10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 * 11 *
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="left division"> 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" version="5.0-subset Scilab" xml:id="left_division">
14 <refnamediv> 14 <refnamediv>
15 <refname>left division</refname> 15 <refname>\</refname>
16 <refpurpose>(Matlab function) Left division</refpurpose> 16 <refpurpose>(Matlab function) Left division</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
@@ -45,7 +45,7 @@
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48Note that Matlab left division gives strange results when one operand is a character string matrix and not the other one... 48Note that Matlab left division gives strange results when one operand is a character string matrix and not the other one.
49</para> 49</para>
50 </refsection> 50 </refsection>
51</refentry> 51</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/length.xml b/scilab_doc/Matlab_Scilab_dictionary/length.xml
index 1db1904..c1ddc9f 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/length.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/length.xml
@@ -35,7 +35,7 @@ length(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/less.xml b/scilab_doc/Matlab_Scilab_dictionary/less.xml
index 88fc0d9..69ec459 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/less.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/less.xml
@@ -12,7 +12,7 @@
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="less"> 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" version="5.0-subset Scilab" xml:id="less">
14 <refnamediv> 14 <refnamediv>
15 <refname>less</refname> 15 <refname>&lt;</refname>
16 <refpurpose>(Matlab function) Smaller than</refpurpose> 16 <refpurpose>(Matlab function) Smaller than</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/less_equal.xml b/scilab_doc/Matlab_Scilab_dictionary/less_equal.xml
index 1bb3a7c..f30fd46 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/less_equal.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/less_equal.xml
@@ -10,9 +10,9 @@
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt 10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 * 11 *
12 --> 12 -->
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" version="5.0-subset Scilab" xml:id="less equal"> 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" version="5.0-subset Scilab" xml:id="less_equal">
14 <refnamediv> 14 <refnamediv>
15 <refname>less equal</refname> 15 <refname>&lt;=</refname>
16 <refpurpose>(Matlab function) Smaller or equal to</refpurpose> 16 <refpurpose>(Matlab function) Smaller or equal to</refpurpose>
17 </refnamediv> 17 </refnamediv>
18 <refsection> 18 <refsection>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/log2.xml b/scilab_doc/Matlab_Scilab_dictionary/log2.xml
index 977fea2..bc76688 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/log2.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/log2.xml
@@ -35,8 +35,7 @@ log2
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38log2 38log2 - frexp
39frexp
40]]></programlisting> 39]]></programlisting>
41 </td> 40 </td>
42 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/logical.xml b/scilab_doc/Matlab_Scilab_dictionary/logical.xml
index ae69f7a..dfc8966 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/logical.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/logical.xml
@@ -35,7 +35,7 @@ logical(A)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38 38No equivalent
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
@@ -45,7 +45,7 @@ logical(A)
45 <refsection> 45 <refsection>
46 <title>Particular cases</title> 46 <title>Particular cases</title>
47 <para> 47 <para>
48Scilab equivalent for <emphasis role="bold">logical(A)</emphasis> is <emphasis role="italic">A&lt;&gt;0</emphasis> if <emphasis role="bold">A</emphasis> is not an empty matrix and <emphasis role="italic">[]</emphasis> otherwise. 48If <emphasis role="bold">A</emphasis> is not an empty matrix, Scilab equivalent for <emphasis role="bold">logical(A)</emphasis>
49</para> 49 is A not equal to <emphasis role="bold">0</emphasis> else Scilab equivalent is <emphasis role="bold">[]</emphasis>.</para>
50 </refsection> 50 </refsection>
51</refentry> 51</refentry>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/lower.xml b/scilab_doc/Matlab_Scilab_dictionary/lower.xml
index e056a3d..2e00ca7 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/lower.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/lower.xml
@@ -35,7 +35,7 @@ lower(str)
35 </td> 35 </td>
36 <td> 36 <td>
37 <programlisting role="example"><![CDATA[ 37 <programlisting role="example"><![CDATA[
38convstr(str,''u'') 38convstr(str,"l")
39]]></programlisting> 39]]></programlisting>
40 </td> 40 </td>
41 </tr> 41 </tr>
diff --git a/scilab_doc/Matlab_Scilab_dictionary/matlabscilab.xml b/scilab_doc/Matlab_Scilab_dictionary/matlabscilab.xml
index b1a07d5..62bec6c 100644
--- a/scilab_doc/Matlab_Scilab_dictionary/matlabscilab.xml
+++ b/scilab_doc/Matlab_Scilab_dictionary/matlabscilab.xml
@@ -169,7 +169,7 @@
169 <td><para> acos </para></td> 169 <td><para> acos </para></td>
170 </tr> 170 </tr>
171 <tr> 171 <tr>
172 <td><para> acoth(A) </para></td> 172 <td><para><link linkend="acoth">acoth(A) </link></para></td>
173 <td><para> Inverse hyperbolic cotangent </para></td> 173 <td><para> Inverse hyperbolic cotangent </para></td>
174 <td><para> atanh((1) ./A) </para></td> 174 <td><para> atanh((1) ./A) </para></td>
175 </tr> 175 </tr>
@@ -735,12 +735,12 @@
735 <tr> 735 <tr>
736 <td><para><link linkend="fliplr">fliplr(A) </link></para></td> 736 <td><para><link linkend="fliplr">fliplr(A) </link></para></td>
737 <td><para> Flip matrix in left/right direction </para></td> 737 <td><para> Flip matrix in left/right direction </para></td>
738 <td><para> A(:,\$:-1:1) </para></td> 738 <td><para> A(:,$:-1:1) </para></td>
739 </tr> 739 </tr>
740 <tr> 740 <tr>
741 <td><para> flipud(A) </para></td> 741 <td><para> flipud(A) </para></td>
742 <td><para> Flip matrix in up/down direction </para></td> 742 <td><para> Flip matrix in up/down direction </para></td>
743 <td><para> A(\$:-1:1,:) </para></td> 743 <td><para> A($:-1:1,:) </para></td>
744 </tr> 744 </tr>
745 <tr> 745 <tr>
746 <td><para> floor </para></td> 746 <td><para> floor </para></td>
@@ -775,7 +775,7 @@
775 <tr> 775 <tr>
776 <td><para> frewind(fid) </para></td> 776 <td><para> frewind(fid) </para></td>
777 <td><para> Move the file position indicator to the beginning of an open file </para></td> 777 <td><para> Move the file position indicator to the beginning of an open file </para></td>
778 <td><para> mseek('0',fid) </para></td> 778 <td><para> mseek("0",fid) </para></td>
779 </tr> 779 </tr>
780 <tr> 780 <tr>
781 <td><para><link linkend="fscanf">fscanf </link></para></td> 781 <td><para><link linkend="fscanf">fscanf </link></para></td>
@@ -955,7 +955,7 @@
955 <tr> 955 <tr>
956 <td><para> iscell(A) </para></td> 956 <td><para> iscell(A) </para></td>
957 <td><para> Determine if input is a cell array </para></td> 957 <td><para> Determine if input is a cell array </para></td>
958 <td><para> typeof(A)=='ce' </para></td> 958 <td><para> typeof(A)=="ce" </para></td>
959 </tr> 959 </tr>
960 <tr> 960 <tr>
961 <td><para> ischar(A) </para></td> 961 <td><para> ischar(A) </para></td>
@@ -1060,7 +1060,7 @@
1060 <tr> 1060 <tr>
1061 <td><para> isstruct(A) </para></td> 1061 <td><para> isstruct(A) </para></td>
1062 <td><para> Determine if input is a structure array </para></td> 1062 <td><para> Determine if input is a structure array </para></td>
1063 <td><para> typeof(A)=='st' </para></td> 1063 <td><para> typeof(A)=="st" </para></td>
1064 </tr> 1064 </tr>
1065 <tr> 1065 <tr>
1066 <td><para> isstr(A) </para></td> 1066 <td><para> isstr(A) </para></td>
@@ -1145,7 +1145,7 @@
1145 <tr> 1145 <tr>
1146 <td><para><link linkend="lower">lower(str) </link></para></td> 1146 <td><para><link linkend="lower">lower(str) </link></para></td>
1147 <td><para> Convert string to lower case </para></td> 1147 <td><para> Convert string to lower case </para></td>
1148 <td><para> convstr(str,'u') </para></td> 1148 <td><para> convstr(str,"l") </para></td>
1149 </tr> 1149 </tr>
1150 <tr> 1150 <tr>
1151 <td><para><link linkend="lu">lu </link></para></td> 1151 <td><para><link linkend="lu">lu </link></para></td>
@@ -1169,7 +1169,7 @@
1169 </tr> 1169 </tr>
1170 <tr> 1170 <tr>
1171 <td><para><link linkend="mkdir">mkdir </link></para></td> 1171 <td><para><link linkend="mkdir">mkdir </link></para></td>
1172 <td><para> </para></td> 1172 <td><para> Make new folder </para></td>
1173 <td><para> mkdir </para></td> 1173 <td><para> mkdir </para></td>
1174 </tr> 1174 </tr>
1175 <tr> 1175 <tr>
@@ -1190,12 +1190,12 @@
1190 <tr> 1190 <tr>
1191 <td><para><link linkend="nargin">nargin - nargin('fun') </link></para></td> 1191 <td><para><link linkend="nargin">nargin - nargin('fun') </link></para></td>
1192 <td><para> Number of function input arguments </para></td> 1192 <td><para> Number of function input arguments </para></td>
1193 <td><para> argn(2) - size(getfield(1,macrovar(fun)),'*') </para></td> 1193 <td><para> argn(2) - size(getfield(1,macrovar(fun)),"*") </para></td>
1194 </tr> 1194 </tr>
1195 <tr> 1195 <tr>
1196 <td><para><link linkend="nargout">nargout - nargout('fun') </link></para></td> 1196 <td><para><link linkend="nargout">nargout - nargout('fun') </link></para></td>
1197 <td><para> Number of function output arguments </para></td> 1197 <td><para> Number of function output arguments </para></td>
1198 <td><para> argn(1) - size(getfield(2,macrovar(fun)),'*') </para></td> 1198 <td><para> argn(1) - size(getfield(2,macrovar(fun)),"*") </para></td>
1199 </tr> 1199 </tr>
1200 <tr> 1200 <tr>
1201 <td><para><link linkend="ndims">ndims </link></para></td> 1201 <td><para><link linkend="ndims">ndims </link></para></td>
@@ -1295,12 +1295,12 @@
1295 <tr> 1295 <tr>
1296 <td><para><link linkend="randn">randn(A) </link></para></td> 1296 <td><para><link linkend="randn">randn(A) </link></para></td>
1297 <td><para> Normally distributed random numbers and arrays </para></td> 1297 <td><para> Normally distributed random numbers and arrays </para></td>
1298 <td><para> rand(A,'normal') </para></td> 1298 <td><para> rand(A,"normal") </para></td>
1299 </tr> 1299 </tr>
1300 <tr> 1300 <tr>
1301 <td><para><link linkend="rand">rand(A) </link></para></td> 1301 <td><para><link linkend="rand">rand(A) </link></para></td>
1302 <td><para> Uniformly distributed random numbers and arrays </para></td> 1302 <td><para> Uniformly distributed random numbers and arrays </para></td>
1303 <td><para> rand(A[,'uniform']) </para></td> 1303 <td><para> rand(A[,"uniform"]) </para></td>
1304 </tr> 1304 </tr>
1305 <tr> 1305 <tr>
1306 <td><para><link linkend="rcond">rcond </link></para></td> 1306 <td><para><link linkend="rcond">rcond </link></para></td>
@@ -1310,12 +1310,12 @@
1310 <tr> 1310 <tr>
1311 <td><para><link linkend="realmax">realmax </link></para></td> 1311 <td><para><link linkend="realmax">realmax </link></para></td>
1312 <td><para> Largest positive floating-point number </para></td> 1312 <td><para> Largest positive floating-point number </para></td>
1313 <td><para> number_properties('huge') </para></td> 1313 <td><para> number_properties("huge") </para></td>
1314 </tr> 1314 </tr>
1315 <tr> 1315 <tr>
1316 <td><para><link linkend="realmin">realmin </link></para></td> 1316 <td><para><link linkend="realmin">realmin </link></para></td>
1317 <td><para> Smallest positive floating-point number </para></td> 1317 <td><para> Smallest positive floating-point number </para></td>
1318 <td><para> number_properties('tiny') </para></td> 1318 <td><para> number_properties("tiny") </para></td>
1319 </tr> 1319 </tr>
1320 <tr> 1320 <tr>
1321 <td><para> real </para></td> 1321 <td><para> real </para></td>
@@ -1390,7 +1390,7 @@
1390 <tr> 1390 <tr>
1391 <td><para><link linkend="sort">sort </link></para></td> 1391 <td><para><link linkend="sort">sort </link></para></td>
1392 <td><para> Sort elements in ascending order </para></td> 1392 <td><para> Sort elements in ascending order </para></td>
1393 <td><para> No equivalent </para></td> 1393 <td><para> No equivalent </para></td>
1394 </tr> 1394 </tr>
1395 <tr> 1395 <tr>
1396 <td><para><link linkend="sparse">sparse </link></para></td> 1396 <td><para><link linkend="sparse">sparse </link></para></td>
@@ -1535,7 +1535,7 @@
1535 <tr> 1535 <tr>
1536 <td><para><link linkend="upper">upper(str) </link></para></td> 1536 <td><para><link linkend="upper">upper(str) </link></para></td>
1537 <td><para> Convert string to upper case </para></td> 1537 <td><para> Convert string to upper case </para></td>
1538 <td><para> convstr(str,'u') </para></td> 1538 <td><para> convstr(str,"u") </para></td>
1539 </tr> 1539 </tr>
1540 <tr> 1540 <tr>
1541 <td> 1541 <td>
@@ -1705,7 +1705,7 @@
1705 <tr> 1705 <tr>
1706 <td><para><link linkend="logical_or">| </link></para></td> 1706 <td><para><link linkend="logical_or">| </link></para></td>
1707 <td><para> Logical OR </para></td> 1707 <td><para> Logical OR </para></td>
1708 <td><para> </para></td> 1708 <td><para> | </para></td>
1709 </tr> 1709 </tr>
1710 <tr> 1710 <tr>
1711 <td><para><link linkend="greater_than">> </link></para></td> 1711 <td><para><link linkend="greater_than">> </link></para></td>
@@ -1715,7 +1715,7 @@
1715 <tr> 1715 <tr>
1716 <td><para><link linkend="greater_or_equal_to"> &gt;= </link></para></td> 1716 <td><para><link linkend="greater_or_equal_to"> &gt;= </link></para></td>
1717 <td><para> Greater or equal to </para></td> 1717 <td><para> Greater or equal to </para></td>
1718 <td><para> >= </para></td> 1718 <td><para> &gt;= </para></td>
1719 </tr> 1719 </tr>
1720 <tr> 1720 <tr>
1721 <td><para><link linkend="smaller_than"> &lt; </link></para></td> 1721 <td><para><link linkend="smaller_than"> &lt; </link></para></td>
@@ -1786,16 +1786,14 @@
1786<refsection id="acoth"> 1786<refsection id="acoth">
1787 <title>acoth(A)</title> 1787 <title>acoth(A)</title>
1788 <para> 1788 <para>
1789 In Matlab y=acoth(x) and Scilab y=atanh(1 ./x), for real elements of x outside the domain [-1,1], the complex part of Scilab y value is the opposite of Matlab y value. See atanh 1789 In Matlab y=acoth(x) and Scilab y=atanh(1 ./x), for real elements of x outside the domain [-1,1], the complex part of Scilab y value is the opposite of Matlab y value. See atanh.
1790 </para> 1790 </para>
1791</refsection> 1791</refsection>
1792 1792
1793<refsection id="all"> 1793<refsection id="all">
1794 <title>all</title> 1794 <title>all</title>
1795 <para>Test to determine if all elements are nonzero </para>
1796 <para> 1795 <para>
1797 Matlab <emphasis role="strong">all</emphasis> function can work with complexes, what Scilab <emphasis role="strong">and</emphasis> 1796 Matlab <emphasis role="strong">all</emphasis> function can work with complexes, what Scilab <emphasis role="strong">and</emphasis> can not, so a call to <emphasis role="strong">abs</emphasis> function can be necessary when translating from Matlab to Scilab.
1798 can not, so a call to <emphasis role="strong">abs</emphasis> function can be necessary when translating from Matlab to Scilab.
1799 </para> 1797 </para>
1800 <para>The Matlab expression <emphasis role="strong">B=all(A)</emphasis> is translated into Scilab by <emphasis role="strong">B=and(A)</emphasis>:</para> 1798 <para>The Matlab expression <emphasis role="strong">B=all(A)</emphasis> is translated into Scilab by <emphasis role="strong">B=and(A)</emphasis>:</para>
1801 <para>If <emphasis role="strong">A</emphasis> is a matrix, <emphasis role="strong">all(A)</emphasis> is equivalent to 1799 <para>If <emphasis role="strong">A</emphasis> is a matrix, <emphasis role="strong">all(A)</emphasis> is equivalent to
@@ -1803,12 +1801,10 @@
1803 is a logical AND of all elements of <emphasis role="strong">A</emphasis>. If <emphasis role="strong">A</emphasis> 1801 is a logical AND of all elements of <emphasis role="strong">A</emphasis>. If <emphasis role="strong">A</emphasis>
1804 is a multidimensional array then Matlab treats the values along the first non-singleton dimension, but Scilab returns logical AND of all elements of 1802 is a multidimensional array then Matlab treats the values along the first non-singleton dimension, but Scilab returns logical AND of all elements of
1805 <emphasis role="strong">A</emphasis>.</para> 1803 <emphasis role="strong">A</emphasis>.</para>
1806 <para>The Matlab expression <emphasis role="strong">B=all(A,dim)</emphasis> is translated into Scilab by <emphasis role="strong">B=and(A,dim)</emphasis> 1804 <para>The Matlab expression <emphasis role="strong">B=all(A,dim)</emphasis> is translated into Scilab by <emphasis role="strong">B=and(A,dim)</emphasis>:</para>
1807 :</para> 1805 <para>In Scilab <emphasis role="strong">dim=1</emphasis> is equivalent to <emphasis role="strong">dim="r"</emphasis> and
1808 <para>In Scilab <emphasis role="strong">dim=1</emphasis> is equivalent to <emphasis role="strong">dim=r</emphasis> and 1806 <emphasis role="strong">dim=2</emphasis> is equivalent to <emphasis role="strong">dim="c"</emphasis>. In Matlab, <emphasis role="strong">dim</emphasis>
1809 <emphasis role="strong">dim=2</emphasis> is equivalent <emphasis role="strong">dim=c</emphasis>. In Matlab, <emphasis role="strong">dim</emphasis> 1807 can be greater then the number of dimension of <emphasis role="strong">A</emphasis> (in this case, <emphasis role="strong">B=A</emphasis>), in Scilab you will get an error message.
1810 can be greater then the number of dimension of <emphasis role="strong">A</emphasis> (in this case, <emphasis role="strong">B=A</emphasis>
1811 ), in Scilab you will get an error message.
1812 </para> 1808 </para>
1813 1809
1814 <programlisting role="example"><![CDATA[ 1810 <programlisting role="example"><![CDATA[
@@ -1834,15 +1830,15 @@ y = [%T,%F,%F]
1834 <para>Test to determine if any nonzeros elements </para> 1830 <para>Test to determine if any nonzeros elements </para>
1835 <para>Matlab <emphasis role="strong">any</emphasis> function can work with complexes, what Scilab <emphasis role="strong">or</emphasis> 1831 <para>Matlab <emphasis role="strong">any</emphasis> function can work with complexes, what Scilab <emphasis role="strong">or</emphasis>
1836 can not, so a call to <emphasis role="strong">abs</emphasis> function can be necessary when translating from Matlab to Scilab.</para> 1832 can not, so a call to <emphasis role="strong">abs</emphasis> function can be necessary when translating from Matlab to Scilab.</para>
1837 <para>Matlab expression B=any(A) translated into Scilab by B=or(A)</para> 1833 <para>Matlab expression B=any(A) translated into Scilab by B=or(A):</para>
1838 <para>If <emphasis role="strong">A</emphasis> is a matrix, <emphasis role="strong">any(A)</emphasis> is equivalent to 1834 <para>If <emphasis role="strong">A</emphasis> is a matrix, <emphasis role="strong">any(A)</emphasis> is equivalent to
1839 <emphasis role="strong">any(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="strong">or(A)</emphasis> 1835 <emphasis role="strong">any(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="strong">or(A)</emphasis>
1840 is a logical OR of all elements of <emphasis role="strong">A</emphasis>. If <emphasis role="strong">A</emphasis> 1836 is a logical OR of all elements of <emphasis role="strong">A</emphasis>. If <emphasis role="strong">A</emphasis>
1841 is a multidimensional array then Matlab treats the values along the first non-singleton dimension, but Scilab returns logical OR of all elements of 1837 is a multidimensional array then Matlab treats the values along the first non-singleton dimension, but Scilab returns logical OR of all elements of
1842 <emphasis role="strong">A</emphasis>.</para> 1838 <emphasis role="strong">A</emphasis>.</para>
1843 <para>Matlab expression B=any(A,dim) translated into Scilab by B=or(A,dim)</para> 1839 <para>Matlab expression B=any(A,dim) translated into Scilab by B=or(A,dim):</para>
1844 <para>In Scilab <emphasis role="strong">dim=1</emphasis> is equivalent to <emphasis role="strong">dim=r</emphasis> and 1840 <para>In Scilab <emphasis role="strong">dim=1</emphasis> is equivalent to <emphasis role="strong">dim="r"</emphasis> and
1845 <emphasis role="strong">dim=2</emphasis> is equivalent to <emphasis role="strong">dim=c</emphasis>. In Matlab, 1841 <emphasis role="strong">dim=2</emphasis> is equivalent to <emphasis role="strong">dim="c"</emphasis>. In Matlab,
1846 <emphasis role="strong">dim</emphasis> can be greater then the number of dimension of <emphasis role="strong">A</emphasis> 1842 <emphasis role="strong">dim</emphasis> can be greater then the number of dimension of <emphasis role="strong">A</emphasis>
1847 (in this case, <emphasis role="strong">B=A</emphasis>), in Scilab you will get an error message.</para> 1843 (in this case, <emphasis role="strong">B=A</emphasis>), in Scilab you will get an error message.</para>
1848 1844
@@ -1869,15 +1865,15 @@ y = [%T,%T,%T]
1869 <para>In y=asin(x), for real elements of x outside the domain [-1,1], the complex part of Scilab y value is the opposite of Matlab y value.</para> 1865 <para>In y=asin(x), for real elements of x outside the domain [-1,1], the complex part of Scilab y value is the opposite of Matlab y value.</para>
1870 1866
1871 <programlisting role="example"><![CDATA[ 1867 <programlisting role="example"><![CDATA[
1872// Scilab version 1868% Matlab version
1873y = asin(2) 1869y = asin(2)
1874y = 1.5708 - 1.3170i 1870y = 1.5708 - 1.3170i
1875 ]]></programlisting> 1871 ]]></programlisting>
1876 1872
1877 <programlisting role="example"><![CDATA[ 1873 <programlisting role="example"><![CDATA[
1878// Scilab version 1874// Scilab version
1879 1 y = asin(2) 1875y = asin(2)
1880 2 y = 1.5708 + 1.3170i 1876y = 1.5708 + 1.3170i
1881 ]]></programlisting> 1877 ]]></programlisting>
1882</refsection> 1878</refsection>
1883 1879
@@ -1894,7 +1890,7 @@ y = 1.5708 - 1.3170i
1894 <para>In y=atanh(x), for real elements of x outside the domain [-1,1], the complex part of Scilab y value is the opposite of Matlab y value.</para> 1890 <para>In y=atanh(x), for real elements of x outside the domain [-1,1], the complex part of Scilab y value is the opposite of Matlab y value.</para>
1895 1891
1896 <programlisting role="example"><![CDATA[ 1892 <programlisting role="example"><![CDATA[
1897% Scilab version 1893% Matlab version
1898y = atanh(2) 1894y = atanh(2)
1899y = 0.5493 + 1.5708i 1895y = 0.5493 + 1.5708i
1900 ]]></programlisting> 1896 ]]></programlisting>
@@ -1911,6 +1907,16 @@ y = 0.5493061 - 1.5707963i
1911 <para>Diagonal scaling to improve eigenvalue accuracy </para> 1907 <para>Diagonal scaling to improve eigenvalue accuracy </para>
1912 <para>There is no equivalent for <emphasis role="strong">B=balance(A)</emphasis> in Scilab, <emphasis role="strong">balanc</emphasis> 1908 <para>There is no equivalent for <emphasis role="strong">B=balance(A)</emphasis> in Scilab, <emphasis role="strong">balanc</emphasis>
1913 function does not work with only one output value. When used with two outputs, these functions return value in inverse order.</para> 1909 function does not work with only one output value. When used with two outputs, these functions return value in inverse order.</para>
1910
1911 <programlisting role="example"><![CDATA[
1912% Matlab version
1913[T,Ab] = balance(A)
1914 ]]></programlisting>
1915
1916 <programlisting role="example"><![CDATA[
1917// Scilab version
1918[Ab,T] = balanc(A)
1919 ]]></programlisting>
1914</refsection> 1920</refsection>
1915 1921
1916<refsection id="beep"> 1922<refsection id="beep">
@@ -1947,9 +1953,9 @@ y = besseli(alpha,x,ice),ice = 1 or ice = 2
1947 1953
1948 <programlisting role="example"><![CDATA[ 1954 <programlisting role="example"><![CDATA[
1949% Matlab version 1955% Matlab version
1950 1 y = besselj(alpha,x) 1956y = besselj(alpha,x)
1951 2 y = besselj(alpha,x,1) 1957y = besselj(alpha,x,1)
1952 3 [y,ierr] = besselj(alpha,...) 1958[y,ierr] = besselj(alpha,...)
1953 ]]></programlisting> 1959 ]]></programlisting>
1954 1960
1955 <programlisting role="example"><![CDATA[ 1961 <programlisting role="example"><![CDATA[
@@ -2036,7 +2042,7 @@ A = ['xxx' blanks(20) 'yyy'];
2036 2042
2037 <programlisting role="example"><![CDATA[ 2043 <programlisting role="example"><![CDATA[
2038// Scilab version 2044// Scilab version
2039A = 'xxx'+part(' ',ones(1,20))+'yyy'; 2045A = "xxx"+part(" ",ones(1,20))+"yyy";
2040 ]]></programlisting> 2046 ]]></programlisting>
2041</refsection> 2047</refsection>
2042 2048
@@ -2044,31 +2050,40 @@ A = 'xxx'+part(' ',ones(1,20))+'yyy';
2044 <title>box</title> 2050 <title>box</title>
2045 <para>Display axes border </para> 2051 <para>Display axes border </para>
2046 <para>There is no Scilab equivalent function for Matlab box but it can be easyly replaced by Scilab equivalent instructions.</para> 2052 <para>There is no Scilab equivalent function for Matlab box but it can be easyly replaced by Scilab equivalent instructions.</para>
2047 <para>box on box off box box(h,'on') box(h,'off') box(h) </para> 2053
2054 <programlisting role="example"><![CDATA[
2055% Matlab version
2056box on
2057box off
2058box
2059box(h,'on')
2060box(h,'off')
2061box(h)
2062 ]]></programlisting>
2048 2063
2049 <programlisting role="example"><![CDATA[ 2064 <programlisting role="example"><![CDATA[
2050// Scilab version 2065// Scilab version
2051a = gca(); 2066a = gca();
2052a.box = 'on'; 2067a.box = "on";
2053a.box = 'off'; 2068a.box = "off";
2054if a.box=='on' then a.box='off';else a.box='on';end; 2069if a.box=="on" then a.box="off";else a.box="on";end;
2055h.box = 'on'; 2070h.box = "on";
2056h.box = 'off'; 2071h.box = "off";
2057if h.box=='on' then h.box='off';else h.box='on';end; 2072if h.box=="on" then h.box="off";else h.box="on";end;
2058 ]]></programlisting> 2073 ]]></programlisting>
2059</refsection> 2074</refsection>
2060 2075
2061<refsection id="case"> 2076<refsection id="case">
2062 <title>case</title> 2077 <title>case</title>
2063 <para>Case switch </para> 2078 <para>Case switch </para>
2064 <para>In Matlab expression evaluated can be a cell, in this particular use, all values of cell are considered individually (similarly to a OR). In Scilab it can not be a cell (Matlab particularity can be replaced by others 'case' or all switch/case statement can be replaced by a if/then/else statement.).</para> 2079 <para>In Matlab expression evaluated can be a cell, in this particular use, all values of cell are considered individually (similarly to a OR). In Scilab it can not be a cell (Matlab particularity can be replaced by others "case" or all switch/case statement can be replaced by a if/then/else statement.).</para>
2065</refsection> 2080</refsection>
2066 2081
2067<refsection id="cd"> 2082<refsection id="cd">
2068 <title>cd</title> 2083 <title>cd</title>
2069 <para>Change/get working directory </para> 2084 <para>Change/get working directory </para>
2070 <para>Note that <emphasis role="strong">cd ..</emphasis> does not work in Scilab, but it does in Matlab. In Scilab you can use 2085 <para>Note that <emphasis role="strong">cd ..</emphasis> does not work in Scilab, but it does in Matlab. In Scilab you can use
2071 <emphasis role="strong">cd('..')</emphasis> or <emphasis role="strong"> cd ../ </emphasis>. </para> 2086 <emphasis role="strong">cd("..")</emphasis> or <emphasis role="strong"> cd ../ </emphasis>. </para>
2072</refsection> 2087</refsection>
2073 2088
2074<refsection id="cell"> 2089<refsection id="cell">
@@ -2086,35 +2101,34 @@ if h.box=='on' then h.box='off';else h.box='on';end;
2086<refsection id="cla"> 2101<refsection id="cla">
2087 <title>cla</title> 2102 <title>cla</title>
2088 <para>Clear current axes </para> 2103 <para>Clear current axes </para>
2089 <para>cla: Scilab equivalent could be <emphasis role="strong">a = gca();delete(a.children);</emphasis> 2104 <para>cla Scilab equivalent could be <emphasis role="strong">a = gca();delete(a.children);</emphasis>
2090 but in this case, all current axes children will be deleted because there is no HandleVisibility property in Scilab graphics.</para> 2105 but in this case, all current axes children will be deleted because there is no HandleVisibility property in Scilab graphics.</para>
2091 <para>cla reset: Scilab equivalent is <emphasis role="strong">a = gca();delete(a.children);</emphasis>.</para> 2106 <para>cla reset Scilab equivalent is <emphasis role="strong">a = gca();delete(a.children);</emphasis>.</para>
2092</refsection> 2107</refsection>
2093 2108
2094<refsection id="clc"> 2109<refsection id="clc">
2095 <title>clc</title> 2110 <title>clc</title>
2096 <para>Clear Command Window </para> 2111 <para>Clear Command Window </para>
2097 <para>Note that Scilab function allows to clear only a set of lines above the cursor using <emphasis role="strong">clc(nblines)</emphasis> 2112 <para>Note that Scilab function allows to clear only a set of lines above the cursor using <emphasis role="strong">clc(nblines)</emphasis>. Note that Scilab function can not be used in no window mode under Unix/Linux while Matlab one clears the terminal display as if you were using "clear" command.</para>
2098 . Note that Scilab function can not be used in no window mode under Unix/Linux while Matlab one clears the terminal display as if you were using 'clear' command.</para>
2099</refsection> 2113</refsection>
2100 2114
2101<refsection id="clear"> 2115<refsection id="clear">
2102 <title>clear</title> 2116 <title>clear</title>
2103 <para>Remove items from workspace, freeing up system memory.</para> 2117 <para>Remove items from workspace, freeing up system memory</para>
2104 <para>Scilab and Matlab <emphasis role="strong">clear</emphasis> functions are only equivalent when called using <emphasis role="strong">clear</emphasis> 2118 <para>Scilab and Matlab <emphasis role="strong">clear</emphasis> functions are only equivalent when called using <emphasis role="strong">clear</emphasis>
2105 or <emphasis role="strong">clear name</emphasis>.</para> 2119 or <emphasis role="strong">clear name</emphasis>.</para>
2106 <para>clear global ... : Scilab equivalent for Matlab <emphasis role="strong">clear global [name]</emphasis> is 2120 <para>clear global ... Scilab equivalent for Matlab <emphasis role="strong">clear global [name]</emphasis> is
2107 <emphasis role="strong">clearglobal([name])</emphasis>.</para> 2121 <emphasis role="strong">clearglobal([name])</emphasis>.</para>
2108 <para>clear variables ... : Scilab equivalent for Matlab <emphasis role="strong">clear variables</emphasis> is simply 2122 <para>clear variables ... Scilab equivalent for Matlab <emphasis role="strong">clear variables</emphasis> is simply
2109 <emphasis role="strong">clear</emphasis>.</para> 2123 <emphasis role="strong">clear</emphasis>.</para>
2110 <para>clear keyword ... : For all other keywords, there is no Scilab equivalent for Matlab <emphasis role="strong">clear call</emphasis>.</para> 2124 <para>clear keyword ... For all other keywords, there is no Scilab equivalent for Matlab <emphasis role="strong">clear call</emphasis>.</para>
2111</refsection> 2125</refsection>
2112 2126
2113<refsection id="clf"> 2127<refsection id="clf">
2114 <title>clf</title> 2128 <title>clf</title>
2115 <para>Clear current figure window </para> 2129 <para>Clear current figure window </para>
2116 <para>clf : In this case, all current figure children will be deleted because there is no HandleVisibility property in Scilab graphics.</para> 2130 <para>clf In this case, all current figure children will be deleted because there is no HandleVisibility property in Scilab graphics.</para>
2117 <para>fig_handle = clf : Scilab equivalent is be <emphasis role="strong">fig_handle = gcf();clf;</emphasis>. 2131 <para>fig_handle = clf Scilab equivalent is be <emphasis role="strong">fig_handle = gcf();clf;</emphasis>.
2118 In this case, all current figure children will be deleted because there is no HandleVisibility property in Scilab graphics.</para> 2132 In this case, all current figure children will be deleted because there is no HandleVisibility property in Scilab graphics.</para>
2119</refsection> 2133</refsection>
2120 2134
@@ -2124,8 +2138,12 @@ if h.box=='on' then h.box='off';else h.box='on';end;
2124 <para>Even if there no equivalent for Matlab <emphasis role="strong">clock</emphasis> in Scilab, it can be emuled as shown in example.</para> 2138 <para>Even if there no equivalent for Matlab <emphasis role="strong">clock</emphasis> in Scilab, it can be emuled as shown in example.</para>
2125 2139
2126 <programlisting role="example"><![CDATA[ 2140 <programlisting role="example"><![CDATA[
2127// Scilab version 2141% Matlab version
2128c = clock 2142c = clock
2143 ]]></programlisting>
2144
2145 <programlisting role="example"><![CDATA[
2146// Scilab version
2129w = getdate(); 2147w = getdate();
2130w(3:5) = []; 2148w(3:5) = [];
2131w(6) = w(6)+w(7)/1000; 2149w(6) = w(6)+w(7)/1000;
@@ -2136,32 +2154,32 @@ c = w(1:6);
2136<refsection id="close"> 2154<refsection id="close">
2137 <title>close</title> 2155 <title>close</title>
2138 <para>Delete specified figure </para> 2156 <para>Delete specified figure </para>
2139 <para>close : If current figure is a uicontrol one, Scilab and Matlab <emphasis role="strong">close</emphasis> 2157 <para>close If current figure is a uicontrol one, Scilab and Matlab <emphasis role="strong">close</emphasis>
2140 are equivalent. But if current figure is a graphic window, Scilab equivalent for Matlab <emphasis role="strong">close</emphasis> is 2158 are equivalent. But if current figure is a graphic window, Scilab equivalent for Matlab <emphasis role="strong">close</emphasis> is
2141 <emphasis role="strong">delete(gcf())</emphasis>.</para> 2159 <emphasis role="strong">delete(gcf())</emphasis>.</para>
2142 <para>close(h) : If <emphasis role="strong">h</emphasis> is a uicontrol figure, Scilab and Matlab <emphasis role="strong">close(h)</emphasis> 2160 <para>close(h) If <emphasis role="strong">h</emphasis> is a uicontrol figure, Scilab and Matlab <emphasis role="strong">close(h)</emphasis>
2143 are equivalent. But if <emphasis role="strong">h</emphasis> is a graphic window, Scilab equivalent for Matlab 2161 are equivalent. But if <emphasis role="strong">h</emphasis> is a graphic window, Scilab equivalent for Matlab
2144 <emphasis role="strong">close(h)</emphasis> is <emphasis role="strong">delete(h)</emphasis>.</para> 2162 <emphasis role="strong">close(h)</emphasis> is <emphasis role="strong">delete(h)</emphasis>.</para>
2145 <para>close('all') : Scilab equivalent for Matlab <emphasis role="strong">close('all')</emphasis> is 2163 <para>close('all') Scilab equivalent for Matlab <emphasis role="strong">close('all')</emphasis> is
2146 <emphasis role="strong">xdel(winsid())</emphasis>.</para> 2164 <emphasis role="strong">xdel(winsid())</emphasis>.</para>
2147 <para>close(name) : There is no Scilab equivalent for Matlab <emphasis role="strong">close(name)</emphasis> however, 2165 <para>close(name) There is no Scilab equivalent for Matlab <emphasis role="strong">close(name)</emphasis> however,
2148 <emphasis role="strong">mtlb_close</emphasis> can be an equivalent.</para> 2166 <emphasis role="strong">mtlb_close</emphasis> can be an equivalent.</para>
2149 <para>close('all','hidden') : Scilab equivalent for Matlab <emphasis role="strong">close('all','hidden')</emphasis> is 2167 <para>close('all','hidden') Scilab equivalent for Matlab <emphasis role="strong">close('all','hidden')</emphasis> is
2150 <emphasis role="strong">xdel(winsid())</emphasis> but Scilab kills all figures even if they are hidden.</para> 2168 <emphasis role="strong">xdel(winsid())</emphasis> but Scilab kills all figures even if they are hidden.</para>
2151</refsection> 2169</refsection>
2152 2170
2153<refsection id="colordef"> 2171<refsection id="colordef">
2154 <title>colordef</title> 2172 <title>colordef</title>
2155 <para>Set default property values to display different color schemes </para> 2173 <para>Set default property values to display different color schemes </para>
2156 <para>[h = ]mtlb_colordef(color_option) : Scilab equivalent is <emphasis role="strong">fig = gcf();fig.background = -1;[h = fig];</emphasis> 2174 <para>[h = ]mtlb_colordef(color_option) Scilab equivalent is <emphasis role="strong">fig = gcf();fig.background = -1;[h = fig];</emphasis>
2157 if <emphasis role="strong">color_option</emphasis> is equal to 'black' or 'none' and 2175 if <emphasis role="strong">color_option</emphasis> is equal to "black" or "none" and
2158 <emphasis role="strong">fig = gcf();fig.background = -1;[h = fig];</emphasis> else.</para> 2176 <emphasis role="strong">fig = gcf();fig.background = -1;[h = fig];</emphasis> else.</para>
2159 <para>[h = ]mtlb_colordef(fig,color_option) : Considering <emphasis role="strong">fig</emphasis> is a graphics handle, Scilab equivalent is 2177 <para>[h = ]mtlb_colordef(fig,color_option) Considering <emphasis role="strong">fig</emphasis> is a graphics handle, Scilab equivalent is
2160 <emphasis role="strong">fig.background = -1;[h = fig];</emphasis> if <emphasis role="strong">color_option</emphasis> 2178 <emphasis role="strong">fig.background = -1;[h = fig];</emphasis> if <emphasis role="strong">color_option</emphasis>
2161 is equal to 'black' or 'none' and <emphasis role="strong">fig.background = -2;[h = fig];</emphasis> else.</para> 2179 is equal to "black" or "none" and <emphasis role="strong">fig.background = -2;[h = fig];</emphasis> else.</para>
2162 <para>[h = ]mtlb_colordef('new',color_option) : Scilab equivalent is <emphasis role="strong"> 2180 <para>[h = ]mtlb_colordef('new',color_option) Scilab equivalent is <emphasis role="strong">
2163 fig=scf(max(winsid())+1);fig.background = -1;[h = fig];</emphasis> if <emphasis role="strong">color_option</emphasis> 2181 fig=scf(max(winsid())+1);fig.background = -1;[h = fig];</emphasis> if <emphasis role="strong">color_option</emphasis>
2164 is equal to 'black' or 'none' and <emphasis role="strong">fig=scf(max(winsid())+1);fig.background = -2;[h = fig];</emphasis> 2182 is equal to "black" or "none" and <emphasis role="strong">fig=scf(max(winsid())+1);fig.background = -2;[h = fig];</emphasis>
2165 else.</para> 2183 else.</para>
2166</refsection> 2184</refsection>
2167 2185
@@ -2177,11 +2195,11 @@ c = w(1:6);
2177<refsection id="cumprod"> 2195<refsection id="cumprod">
2178 <title>cumprod</title> 2196 <title>cumprod</title>
2179 <para>Cumulative product </para> 2197 <para>Cumulative product </para>
2180 <para>C = cumprod(A) : If <emphasis role="strong">A</emphasis> is a matrix, <emphasis role="strong">cumprod(A)</emphasis> 2198 <para>C = cumprod(A) If <emphasis role="strong">A</emphasis> is a matrix, <emphasis role="strong">cumprod(A)</emphasis>
2181 is equivalent to <emphasis role="strong">cumprod(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="strong">cumprod(A)</emphasis> 2199 is equivalent to <emphasis role="strong">cumprod(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="strong">cumprod(A)</emphasis>
2182 gives the cumulative product of all the entries of <emphasis role="strong">A</emphasis> 2200 gives the cumulative product of all the entries of <emphasis role="strong">A</emphasis>
2183 taken columnwise. Actually, Matlab works on the first non-singleton dimension and Scilab does not.</para> 2201 taken columnwise. Actually, Matlab works on the first non-singleton dimension and Scilab does not.</para>
2184 <para>C = cumprod(A,dim) : Matlab can work with dim greater than number of dimensions of <emphasis role="strong">A</emphasis> 2202 <para>C = cumprod(A,dim) Matlab can work with dim greater than number of dimensions of <emphasis role="strong">A</emphasis>
2185 but Scilab can not, in this can use <emphasis role="strong">mtlb_cumprod</emphasis> instead.</para> 2203 but Scilab can not, in this can use <emphasis role="strong">mtlb_cumprod</emphasis> instead.</para>
2186 2204
2187 <programlisting role="example"><![CDATA[ 2205 <programlisting role="example"><![CDATA[
@@ -2204,11 +2222,11 @@ B = [1,2,3;4,10,18]
2204<refsection id="cumsum"> 2222<refsection id="cumsum">
2205 <title>cumsum</title> 2223 <title>cumsum</title>
2206 <para>Cumulative sum </para> 2224 <para>Cumulative sum </para>
2207 <para>C=cumsum(A) : If A is a matrix, <emphasis role="strong">cumsum(A)</emphasis> is equivalent to 2225 <para>C=cumsum(A) If A is a matrix, <emphasis role="strong">cumsum(A)</emphasis> is equivalent to
2208 <emphasis role="strong">cumsum(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="strong">cumsum(A)</emphasis> 2226 <emphasis role="strong">cumsum(A,1)</emphasis> in Matlab whereas in Scilab <emphasis role="strong">cumsum(A)</emphasis>
2209 gives the cumulative sum of all the entries of <emphasis role="strong">A</emphasis> 2227 gives the cumulative sum of all the entries of <emphasis role="strong">A</emphasis>
2210 taken columnwise. Actually, Matlab works on the first non-singleton dimension and Scilab does not.</para> 2228 taken columnwise. Actually, Matlab works on the first non-singleton dimension and Scilab does not.</para>
2211 <para>C = cumsum(A,dim) : Matlab can work with dim greater than number of dimensions of <emphasis role="strong">A</emphasis> 2229 <para>C = cumsum(A,dim) Matlab can work with dim greater than number of dimensions of <emphasis role="strong">A</emphasis>
2212 but Scilab can not, in this can use <emphasis role="strong">mtlb_cumsum</emphasis> instead.</para> 2230 but Scilab can not, in this can use <emphasis role="strong">mtlb_cumsum</emphasis> instead.</para>
2213 2231
2214 <programlisting role="example"><![CDATA[ 2232 <programlisting role="example"><![CDATA[
@@ -2231,20 +2249,20 @@ B=[1,2,3;5,7,9]
2231<refsection id="dec2hex"> 2249<refsection id="dec2hex">
2232 <title>dec2hex</title> 2250 <title>dec2hex</title>
2233 <para>Decimal to hexadecimal number conversion </para> 2251 <para>Decimal to hexadecimal number conversion </para>
2234 <para>Empty matrix input : In Matlab <emphasis role="strong">dec2hex</emphasis> returns <emphasis role="strong">""</emphasis> 2252 <para>Empty matrix input: In Matlab <emphasis role="strong">dec2hex</emphasis> returns <emphasis role="strong">""</emphasis>
2235 when input is <emphasis role="strong">[]</emphasis> but Scilab <emphasis role="strong">dec2hex</emphasis> returns 2253 when input is <emphasis role="strong">[]</emphasis> but Scilab <emphasis role="strong">dec2hex</emphasis> returns
2236 <emphasis role="strong">[]</emphasis>.</para> 2254 <emphasis role="strong">[]</emphasis>.</para>
2237 <para>Complex inputs : In Matlab <emphasis role="strong">dec2hex</emphasis> automatically removes complex part of input but not in Scilab.</para> 2255 <para>Complex inputs: In Matlab <emphasis role="strong">dec2hex</emphasis> automatically removes complex part of input but not in Scilab.</para>
2238 <para>Two inputs : In Matlab <emphasis role="strong">dec2hex</emphasis> can have two inputs, in Scilab <emphasis role="strong">mtlb_dec2hex</emphasis> 2256 <para>Two inputs: In Matlab <emphasis role="strong">dec2hex</emphasis> can have two inputs, in Scilab <emphasis role="strong">mtlb_dec2hex</emphasis>
2239 emulates this case.</para> 2257 emulates this case.</para>
2240</refsection> 2258</refsection>
2241 2259
2242<refsection id="delete"> 2260<refsection id="delete">
2243 <title>delete</title> 2261 <title>delete</title>
2244 <para>Delete files or graphics objects </para> 2262 <para>Delete files or graphics objects </para>
2245 <para>Files : When Matlab <emphasis role="strong">delete</emphasis> is used to delete a file, Scilab equivalent is 2263 <para>Files When Matlab <emphasis role="strong">delete</emphasis> is used to delete a file, Scilab equivalent is
2246 <emphasis role="strong">mdelete</emphasis>.</para> 2264 <emphasis role="strong">mdelete</emphasis>.</para>
2247 <para>Graphics objects : When Matlab <emphasis role="strong">delete</emphasis> is used to delete a graphics object, Scilab equivalent is 2265 <para>Graphics objects When Matlab <emphasis role="strong">delete</emphasis> is used to delete a graphics object, Scilab equivalent is
2248 <emphasis role="strong">delete</emphasis>. Note that Scilab <emphasis role="strong">delete</emphasis> 2266 <emphasis role="strong">delete</emphasis>. Note that Scilab <emphasis role="strong">delete</emphasis>
2249 can delete a set of graphics handles is its input is a matrix of such objects.</para> 2267 can delete a set of graphics handles is its input is a matrix of such objects.</para>
2250</refsection> 2268</refsection>
@@ -2264,10 +2282,10 @@ B = ['s ';' t ';' r']
2264 2282
2265 <programlisting role="example"><![CDATA[ 2283 <programlisting role="example"><![CDATA[
2266// Scilab version 2284// Scilab version
2267B = diag('str') 2285B = diag("str")
2268B = 'str' 2286B = "str"
2269B = mtlb_diag('str') 2287B = mtlb_diag("str")
2270B = ['s ';' t ';' r'] 2288B = ["s ";" t ";" r"]
2271 ]]></programlisting> 2289 ]]></programlisting>
2272</refsection> 2290</refsection>
2273 2291
@@ -2283,11 +2301,11 @@ B = ['s ';' t ';' r']
2283<refsection id="diff"> 2301<refsection id="diff">
2284 <title>diff</title> 2302 <title>diff</title>
2285 <para>Differences and approximate derivatives </para> 2303 <para>Differences and approximate derivatives </para>
2286 <para>Y = diff(X[,n]) : For this kind of use of <emphasis role="strong">diff</emphasis> 2304 <para>Y = diff(X[,n]) For this kind of use of <emphasis role="strong">diff</emphasis>
2287 (dim parameter not given), Matlab works on the first non-singleton dimension of <emphasis role="strong">X</emphasis> 2305 (dim parameter not given), Matlab works on the first non-singleton dimension of <emphasis role="strong">X</emphasis>
2288 what Scilab does not. In this case, Scilab considers dim to be <emphasis role="strong"> '*' </emphasis> 2306 what Scilab does not. In this case, Scilab considers dim to be <emphasis role="strong">"*"</emphasis>
2289 so that diff threats all values of <emphasis role="strong">X</emphasis>, what Matlab does not.</para> 2307 so that diff threats all values of <emphasis role="strong">X</emphasis>, what Matlab does not.</para>
2290 <para>Y = diff(X,n,dim) : If dimension given by <emphasis role="strong">dim</emphasis> reaches 1 before <emphasis role="strong">n</emphasis> 2308 <para>Y = diff(X,n,dim) If dimension given by <emphasis role="strong">dim</emphasis> reaches 1 before <emphasis role="strong">n</emphasis>
2291 iterations have been done, Matlab switches to next non-singleton dimension, but Scilab does not, use <emphasis role="strong">mtlb_diff</emphasis> 2309 iterations have been done, Matlab switches to next non-singleton dimension, but Scilab does not, use <emphasis role="strong">mtlb_diff</emphasis>
2292 to get equivalent results. When <emphasis role="strong">n</emphasis> is greater than all existing dimensions of 2310 to get equivalent results. When <emphasis role="strong">n</emphasis> is greater than all existing dimensions of
2293 <emphasis role="strong">X</emphasis>, Matlab returns <emphasis role="strong">[]</emphasis> what Scilab may not give for all inputs.</para> 2311 <emphasis role="strong">X</emphasis>, Matlab returns <emphasis role="strong">[]</emphasis> what Scilab may not give for all inputs.</para>
@@ -2304,8 +2322,8 @@ B = ['s ';' t ';' r']
2304<refsection id="docopt"> 2322<refsection id="docopt">
2305 <title>docopt</title> 2323 <title>docopt</title>
2306 <para>Web browser for UNIX platforms </para> 2324 <para>Web browser for UNIX platforms </para>
2307 <para>There no Scilab equivalent function, however, information about Web Browser used can be found using globalvariable 2325 <para>There no Scilab equivalent function, however, information about Web Browser used can be found using global variable
2308 <emphasis role="strong">%browsehelp</emphasis>. Those variables exists under all platforms.</para> 2326 <emphasis role="strong">%browsehelp</emphasis>. This variable exists under all platforms.</para>
2309</refsection> 2327</refsection>
2310 2328
2311<refsection id="dos"> 2329<refsection id="dos">
@@ -2315,7 +2333,12 @@ B = ['s ';' t ';' r']
2315 to emulate Matlab <emphasis role="strong">-echo</emphasis> option.</para> 2333 to emulate Matlab <emphasis role="strong">-echo</emphasis> option.</para>
2316 2334
2317 <programlisting role="example"><![CDATA[ 2335 <programlisting role="example"><![CDATA[
2336% Matlab version
2318[status,result] = dos(...) 2337[status,result] = dos(...)
2338 ]]></programlisting>
2339
2340 <programlisting role="example"><![CDATA[
2341// Scilab version
2319[result,status] = unix_g(...) 2342[result,status] = unix_g(...)
2320 ]]></programlisting> 2343 ]]></programlisting>
2321</refsection> 2344</refsection>
@@ -2339,18 +2362,17 @@ B = ['s ';' t ';' r']
2339 are not exactly equivalents but they both change the information displayed during execution. Scilab <emphasis role="strong">mode</emphasis> 2362 are not exactly equivalents but they both change the information displayed during execution. Scilab <emphasis role="strong">mode</emphasis>
2340 has to be called inside a script or a function but Matlab <emphasis role="strong">echo</emphasis> 2363 has to be called inside a script or a function but Matlab <emphasis role="strong">echo</emphasis>
2341 can be called from prompt. However, some uses are equivalents such as:</para> 2364 can be called from prompt. However, some uses are equivalents such as:</para>
2342 <para>echo : is equivalent to Scilab <emphasis role="strong">mode(abs(mode()-1))</emphasis> for scripts and non-compiled functions</para> 2365 <para>echo is equivalent to Scilab <emphasis role="strong">mode(abs(mode()-1))</emphasis> for scripts and non-compiled functions</para>
2343 <para>echo on : is equivalent to Scilab <emphasis role="strong">mode(1)</emphasis> for scripts and non-compiled functions</para> 2366 <para>echo on is equivalent to Scilab <emphasis role="strong">mode(1)</emphasis> for scripts and non-compiled functions</para>
2344 <para>echo off : is equivalent to Scilab <emphasis role="strong">mode(0)</emphasis></para> 2367 <para>echo off is equivalent to Scilab <emphasis role="strong">mode(0)</emphasis></para>
2345</refsection> 2368</refsection>
2346 2369
2347<refsection id="eig"> 2370<refsection id="eig">
2348 <title>eig</title> 2371 <title>eig</title>
2349 <para>Find eigenvalues and eigenvectors </para> 2372 <para>Find eigenvalues and eigenvectors </para>
2350 <para>eig(A) : Scilab equivalent for <emphasis role="strong">eig(A)</emphasis> is <emphasis role="strong">spec(A)</emphasis> 2373 <para>eig(A) Scilab equivalent for <emphasis role="strong">eig(A)</emphasis> is <emphasis role="strong">spec(A)</emphasis>. Scilab eigen vector matrix can differ from Matlab one.</para>
2351 . Scilab eigen vector matrix can differ from Matlab one.</para> 2374 <para>eig(A,'nobalance') There is no Scilab equivalent for <emphasis role="strong">"nobalance"</emphasis> option. See examples.</para>
2352 <para>eig(A,'nobalance') : There is no Scilab equivalent for <emphasis role="strong">'nobalance</emphasis>' option. See examples.</para> 2375 <para>eig(A,B,flag) There is no Scilab equivalent for <emphasis role="strong">flag</emphasis>.</para>
2353 <para>eig(A,B,flag) : There is no Scilab equivalent for <emphasis role="strong">flag</emphasis></para>
2354 2376
2355 2377
2356 <programlisting role="example"><![CDATA[ 2378 <programlisting role="example"><![CDATA[
@@ -2387,9 +2409,9 @@ d = spec(A)
2387<refsection id="eval"> 2409<refsection id="eval">
2388 <title>eval</title> 2410 <title>eval</title>
2389 <para>Execute a string containing an instruction/expression</para> 2411 <para>Execute a string containing an instruction/expression</para>
2390 <para>Expression : When <emphasis role="strong">eval</emphasis> has to execute an expression then Scilab equivalent for 2412 <para>Expression: When <emphasis role="strong">eval</emphasis> has to execute an expression then Scilab equivalent for
2391 <emphasis role="strong">eval</emphasis> is <emphasis role="strong">evstr</emphasis></para> 2413 <emphasis role="strong">eval</emphasis> is <emphasis role="strong">evstr</emphasis></para>
2392 <para>Instruction : When <emphasis role="strong">eval</emphasis> has to execute an instruction with just one output value then Scilab equivalent for 2414 <para>Instruction: When <emphasis role="strong">eval</emphasis> has to execute an instruction with just one output value then Scilab equivalent for
2393 <emphasis role="strong">eval</emphasis> is <emphasis role="strong">evstr</emphasis>. If instruction has more than one output value then 2415 <emphasis role="strong">eval</emphasis> is <emphasis role="strong">evstr</emphasis>. If instruction has more than one output value then
2394 <emphasis role="strong">execstr</emphasis> has to be used as follows. When <emphasis role="strong">eval</emphasis> is used with two inputs 2416 <emphasis role="strong">execstr</emphasis> has to be used as follows. When <emphasis role="strong">eval</emphasis> is used with two inputs
2395 then an equivalent can be found in examples below.</para> 2417 then an equivalent can be found in examples below.</para>
@@ -2406,11 +2428,11 @@ eval('1+1','1+2')
2406 2428
2407 <programlisting role="example"><![CDATA[ 2429 <programlisting role="example"><![CDATA[
2408// Scilab version 2430// Scilab version
2409evstr('1+1') 2431evstr("1+1")
2410x = evstr('1+1') 2432x = evstr("1+1")
2411execstr('[d1,d2]=size(1)') 2433execstr("[d1,d2]=size(1)")
2412execstr('[d1,d2]=size(1)') 2434execstr("[d1,d2]=size(1)")
2413if execstr('1+1','errcatch') then execstr('1+2');end 2435if execstr("1+1","errcatch") then execstr("1+2");end
2414 ]]></programlisting> 2436 ]]></programlisting>
2415</refsection> 2437</refsection>
2416 2438
@@ -2426,14 +2448,14 @@ if execstr('1+1','errcatch') then execstr('1+2');end
2426 <para>Identity matrix </para> 2448 <para>Identity matrix </para>
2427 <para>Note that in Matlab, <emphasis role="strong">A</emphasis> can contain complex values (in these cases, only real part of 2449 <para>Note that in Matlab, <emphasis role="strong">A</emphasis> can contain complex values (in these cases, only real part of
2428 <emphasis role="strong">A</emphasis> is taken in account), what Scilab function do not tolerate.</para> 2450 <emphasis role="strong">A</emphasis> is taken in account), what Scilab function do not tolerate.</para>
2429 <para>B=eye(A) : If A is a scalar, then Matlab returns a <emphasis role="strong">A*A</emphasis> identity matrix but in Scilab you get a 2451 <para>B=eye(A) If A is a scalar, then Matlab returns a <emphasis role="strong">A*A</emphasis> identity matrix but in Scilab you get a
2430 <emphasis role="strong">1</emphasis>, use <emphasis role="strong">eye(A,A)</emphasis> to get the same matrix 2452 <emphasis role="strong">1</emphasis>, use <emphasis role="strong">eye(A,A)</emphasis> to get the same matrix
2431 <emphasis role="strong">B</emphasis>. If <emphasis role="strong">A</emphasis> is a vector, Scilab and Matlab give the same 2453 <emphasis role="strong">B</emphasis>. If <emphasis role="strong">A</emphasis> is a vector, Scilab and Matlab give the same
2432 <emphasis role="strong">B</emphasis>. Finally, if <emphasis role="strong">A</emphasis> is a matrix, in Scilab, <emphasis role="strong">B</emphasis> 2454 <emphasis role="strong">B</emphasis>. Finally, if <emphasis role="strong">A</emphasis> is a matrix, in Scilab, <emphasis role="strong">B</emphasis>
2433 will be a matrix having the same size as <emphasis role="strong">A</emphasis> whereas in Matlab, you get an error message.</para> 2455 will be a matrix having the same size as <emphasis role="strong">A</emphasis> whereas in Matlab, you get an error message.</para>
2434 2456
2435 <programlisting role="example"><![CDATA[ 2457 <programlisting role="example"><![CDATA[
2436// Scilab version 2458% Matlab version
2437B = eye(2) 2459B = eye(2)
2438B = [1,0;0,1] 2460B = [1,0;0,1]
2439B = eye(2,2) 2461B = eye(2,2)
@@ -2462,19 +2484,17 @@ B = [1,0]
2462<refsection id="ferror"> 2484<refsection id="ferror">
2463 <title>ferror</title> 2485 <title>ferror</title>
2464 <para>Query about errors in file input or output </para> 2486 <para>Query about errors in file input or output </para>
2465 <para>ferror(fid) : When Matlab <emphasis role="strong">ferror</emphasis> is called with just one input and one output, then Scilab equivalent is 2487 <para>ferror(fid) When Matlab <emphasis role="strong">ferror</emphasis> is called with just one input and one output, then Scilab equivalent is
2466 <emphasis role="strong">merror</emphasis>.</para> 2488 <emphasis role="strong">merror</emphasis>.</para>
2467 <para>ferror(fid,'clear') : When Matlab <emphasis role="strong">ferror</emphasis> 2489 <para>ferror(fid,'clear') When Matlab <emphasis role="strong">ferror</emphasis>
2468 is called with two inputs and just one output, then Scilab equivalent is <emphasis role="strong">mclearerr</emphasis> 2490 is called with two inputs and just one output, then Scilab equivalent is <emphasis role="strong">mclearerr</emphasis>. For all other cases, there no equivalent in Scilab.</para>
2469 .For all other cases, there no equivalent in Scilab.</para>
2470</refsection> 2491</refsection>
2471 2492
2472<refsection id="feval"> 2493<refsection id="feval">
2473 <title>feval</title> 2494 <title>feval</title>
2474 <para>Function evaluation </para> 2495 <para>Function evaluation </para>
2475 <para>One output : In this case Scilab <emphasis role="strong">evstr</emphasis> is an equivalent to <emphasis role="strong">feval</emphasis> 2496 <para>One output: In this case Scilab <emphasis role="strong">evstr</emphasis> is an equivalent to <emphasis role="strong">feval</emphasis>, after modifying inputs such as in examples below.</para>
2476 , after modifying inputs such as in examples below.</para> 2497 <para>More than one output: In this case Scilab <emphasis role="strong">execstr</emphasis> is an equivalent to
2477 <para>More than one output : In this case Scilab <emphasis role="strong">execstr</emphasis> is an equivalent to
2478 <emphasis role="strong">feval</emphasis>, after modifying inputs such as in examples below.</para> 2498 <emphasis role="strong">feval</emphasis>, after modifying inputs such as in examples below.</para>
2479 2499
2480 <programlisting role="example"><![CDATA[ 2500 <programlisting role="example"><![CDATA[
@@ -2485,18 +2505,18 @@ B = [1,0]
2485 2505
2486 <programlisting role="example"><![CDATA[ 2506 <programlisting role="example"><![CDATA[
2487// Scilab version 2507// Scilab version
2488y1 = evstr('cos(0)') 2508y1 = evstr("cos(0)")
2489execstr('[y1,y2] = size(1)') 2509execstr("[y1,y2] = size(1)")
2490 ]]></programlisting> 2510 ]]></programlisting>
2491</refsection> 2511</refsection>
2492 2512
2493<refsection id="fftshift"> 2513<refsection id="fftshift">
2494 <title>fftshift</title> 2514 <title>fftshift</title>
2495 <para>Shift zero-frequency component of discrete Fourier transform to center of spectrum </para> 2515 <para>Shift zero-frequency component of discrete Fourier transform to center of spectrum </para>
2496 <para>fftshift(A[,dim]) : Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal 2516 <para>fftshift(A[,dim]) Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal
2497 if A is a string matrix or vector in fftshift(A) or fftshift(A,dim). <emphasis role="strong">mtlb_fftshift</emphasis> 2517 if A is a string matrix or vector in fftshift(A) or fftshift(A,dim). <emphasis role="strong">mtlb_fftshift</emphasis>
2498 can emulate this particularity in Scilab.</para> 2518 can emulate this particularity in Scilab.</para>
2499 <para>fftshift(A,dim) : In Matlab, <emphasis role="strong">dim</emphasis> can be greater than the number of dimensions of 2519 <para>fftshift(A,dim) In Matlab, <emphasis role="strong">dim</emphasis> can be greater than the number of dimensions of
2500 <emphasis role="strong">A</emphasis> but in Scilab you get an error message in this case. <emphasis role="strong">mtlb_fftshift</emphasis> 2520 <emphasis role="strong">A</emphasis> but in Scilab you get an error message in this case. <emphasis role="strong">mtlb_fftshift</emphasis>
2501 can emulate this particularity in Scilab.</para> 2521 can emulate this particularity in Scilab.</para>
2502 2522
@@ -2508,20 +2528,20 @@ Y = 'rst'
2508 2528
2509 <programlisting role="example"><![CDATA[ 2529 <programlisting role="example"><![CDATA[
2510// Scilab version 2530// Scilab version
2511Y = fftshift('str') 2531Y = fftshift("str")
2512Y = 'str' 2532Y = "str"
2513Y = mtlb_fftshift('str') 2533Y = mtlb_fftshift("str")
2514Y = 'rst' 2534Y = "rst"
2515 ]]></programlisting> 2535 ]]></programlisting>
2516</refsection> 2536</refsection>
2517 2537
2518<refsection id="fft"> 2538<refsection id="fft">
2519 <title>fft(A[,...])</title> 2539 <title>fft(A[,...])</title>
2520 <para>Discrete Fourier transform </para> 2540 <para>Discrete Fourier transform </para>
2521 <para>Y = fft(X) : If X is a vector then Scilab equivalent for Matlab <emphasis role="strong">fft(X)</emphasis> is 2541 <para>Y = fft(X) If X is a vector then Scilab equivalent for Matlab <emphasis role="strong">fft(X)</emphasis> is
2522 <emphasis role="strong">fft(X,-1)</emphasis>. If <emphasis role="strong">X</emphasis> is a matrix then Scilab equivalent for Matlab 2542 <emphasis role="strong">fft(X,-1)</emphasis>. If <emphasis role="strong">X</emphasis> is a matrix then Scilab equivalent for Matlab
2523 <emphasis role="strong">fft(X)</emphasis> is <emphasis role="strong">fft(X,-1,2,1)</emphasis>.</para> 2543 <emphasis role="strong">fft(X)</emphasis> is <emphasis role="strong">fft(X,-1,2,1)</emphasis>.</para>
2524 <para>Y = fft(X,n) / Y = fft(X,n,dim) / Y = fft(X,[],dim) : There is no Scilab equivalent for all these Matlab uses of 2544 <para>Y = fft(X,n) / Y = fft(X,n,dim) / Y = fft(X,[],dim) There is no Scilab equivalent for all these Matlab uses of
2525 <emphasis role="strong">fft</emphasis>, in these cases, use <emphasis role="strong">mtlb_fft</emphasis> instead.</para> 2545 <emphasis role="strong">fft</emphasis>, in these cases, use <emphasis role="strong">mtlb_fft</emphasis> instead.</para>
2526</refsection> 2546</refsection>
2527 2547
@@ -2553,14 +2573,14 @@ fgetstr(n,fid)
2553<refsection id="fileparts"> 2573<refsection id="fileparts">
2554 <title>fileparts</title> 2574 <title>fileparts</title>
2555 <para>Return filename parts </para> 2575 <para>Return filename parts </para>
2556 <para>Scilab function does not get file version but Matlab one does. Scilab function can take a second input parameter specifying the output value we want to get saying: 'path', 'fname' or 'extension'.</para> 2576 <para>Scilab function does not get file version but Matlab one does. Scilab function can take a second input parameter specifying the output value we want to get saying: "path", "fname" or "extension".</para>
2557</refsection> 2577</refsection>
2558 2578
2559<refsection id="filesep"> 2579<refsection id="filesep">
2560 <title>filesep</title> 2580 <title>filesep</title>
2561 <para>Return the directory separator for this platform </para> 2581 <para>Return the directory separator for this platform </para>
2562 <para>There is no Scilab function equivalent to Matlab <emphasis role="strong">filesep</emphasis> but the same output can be obtained with 2582 <para>There is no Scilab function equivalent to Matlab <emphasis role="strong">filesep</emphasis> but the same output can be obtained with
2563 <emphasis role="strong">pathconvert('/')</emphasis>.</para> 2583 <emphasis role="strong">pathconvert("/")</emphasis>.</para>
2564</refsection> 2584</refsection>
2565 2585
2566<refsection id="findstr"> 2586<refsection id="findstr">
@@ -2595,12 +2615,12 @@ fgetstr(n,fid)
2595<refsection id="fopen"> 2615<refsection id="fopen">
2596 <title>fopen</title> 2616 <title>fopen</title>
2597 <para>Open a file or obtain information about open files </para> 2617 <para>Open a file or obtain information about open files </para>
2598 <para>Access permission : Matlab offers two permissions options not supported by Scilab: <emphasis role="strong">W</emphasis> and 2618 <para>Access permission: Matlab offers two permissions options not supported by Scilab: <emphasis role="strong">W</emphasis> and
2599 <emphasis role="strong">A</emphasis> (for tape drives)</para> 2619 <emphasis role="strong">A</emphasis> (for tape drives)</para>
2600 <para>Input values : In Matlab, <emphasis role="strong">fopen('all')</emphasis> lists all opened files, in Scilab, this type of call for 2620 <para>Input values: In Matlab, <emphasis role="strong">fopen('all')</emphasis> lists all opened files, in Scilab, this type of call for
2601 <emphasis role="strong">fopen</emphasis> does not exist. You can also use <emphasis role="strong">fopen</emphasis> in Matlab to get 2621 <emphasis role="strong">fopen</emphasis> does not exist. You can also use <emphasis role="strong">fopen</emphasis> in Matlab to get
2602 informations on a file identifier (<emphasis role="strong">fopen(fid)</emphasis>), this case is not implemented in Scilab.</para> 2622 informations on a file identifier (<emphasis role="strong">fopen(fid)</emphasis>), this case is not implemented in Scilab.</para>
2603 <para>Machine format : Note that Scilab does not support machine format values as input or output.Matlab <emphasis role="strong">fopen</emphasis> 2623 <para>Machine format: Note that Scilab does not support machine format values as input or output. Matlab <emphasis role="strong">fopen</emphasis>
2604 can return an error message but not Scilab <emphasis role="strong">mopen</emphasis>, moreover, returned file identifier is 2624 can return an error message but not Scilab <emphasis role="strong">mopen</emphasis>, moreover, returned file identifier is
2605 <emphasis role="strong">-1</emphasis> in case of error in Matlab but does not exist in this case in Scilab, so an emulation function has 2625 <emphasis role="strong">-1</emphasis> in case of error in Matlab but does not exist in this case in Scilab, so an emulation function has
2606 been written <emphasis role="strong">mtlb_fopen</emphasis>.</para> 2626 been written <emphasis role="strong">mtlb_fopen</emphasis>.</para>
@@ -2608,7 +2628,8 @@ fgetstr(n,fid)
2608 2628
2609<refsection id="format"> 2629<refsection id="format">
2610 <title>format</title> 2630 <title>format</title>
2611 <para>Control display format for output Some Matlab formats have no Scilab equivalent, see examples below.</para> 2631 <para>Control display format for output </para>
2632 <para>Some Matlab formats have no Scilab equivalent, see examples below.</para>
2612 2633
2613 <table> 2634 <table>
2614 <caption/> 2635 <caption/>
@@ -2624,7 +2645,7 @@ fgetstr(n,fid)
2624 </tr> 2645 </tr>
2625 <tr> 2646 <tr>
2626 <td><para> format </para></td> 2647 <td><para> format </para></td>
2627 <td><para> format('v',6) </para></td> 2648 <td><para> format("v",6) </para></td>
2628 </tr> 2649 </tr>
2629 <tr> 2650 <tr>
2630 <td><para> format + </para></td> 2651 <td><para> format + </para></td>
@@ -2632,15 +2653,15 @@ fgetstr(n,fid)
2632 </tr> 2653 </tr>
2633 <tr> 2654 <tr>
2634 <td><para> format bank </para></td> 2655 <td><para> format bank </para></td>
2635 <td><para> No equivalent for: format 'bank' </para></td> 2656 <td><para> No equivalent for: format "bank" </para></td>
2636 </tr> 2657 </tr>
2637 <tr> 2658 <tr>
2638 <td><para> format compact </para></td> 2659 <td><para> format compact </para></td>
2639 <td><para> No equivalent for: format 'compact' </para></td> 2660 <td><para> No equivalent for: format "compact" </para></td>
2640 </tr> 2661 </tr>
2641 <tr> 2662 <tr>
2642 <td><para> format hex </para></td> 2663 <td><para> format hex </para></td>
2643 <td><para> No equivalent for: format 'hex' </para></td> 2664 <td><para> No equivalent for: format "hex" </para></td>
2644 </tr> 2665 </tr>
2645 <tr> 2666 <tr>
2646 <td><para> format long </para></td> 2667 <td><para> format long </para></td>
@@ -2648,19 +2669,19 @@ fgetstr(n,fid)
2648 </tr> 2669 </tr>
2649 <tr> 2670 <tr>
2650 <td><para> format long e </para></td> 2671 <td><para> format long e </para></td>
2651 <td><para> format('e',16) </para></td> 2672 <td><para> format("e",16) </para></td>
2652 </tr> 2673 </tr>
2653 <tr> 2674 <tr>
2654 <td><para> format long g </para></td> 2675 <td><para> format long g </para></td>
2655 <td><para> format('e',16) </para></td> 2676 <td><para> format("e",16) </para></td>
2656 </tr> 2677 </tr>
2657 <tr> 2678 <tr>
2658 <td><para> format loose </para></td> 2679 <td><para> format loose </para></td>
2659 <td><para> No equivalent for: format 'loose' </para></td> 2680 <td><para> No equivalent for: format "loose" </para></td>
2660 </tr> 2681 </tr>
2661 <tr> 2682 <tr>
2662 <td><para> format rat </para></td> 2683 <td><para> format rat </para></td>
2663 <td><para> No equivalent for: format 'rat' </para></td> 2684 <td><para> No equivalent for: format "rat" </para></td>
2664 </tr> 2685 </tr>
2665 <tr> 2686 <tr>
2666 <td><para> format short </para></td> 2687 <td><para> format short </para></td>
@@ -2668,11 +2689,11 @@ fgetstr(n,fid)
2668 </tr> 2689 </tr>
2669 <tr> 2690 <tr>
2670 <td><para> format short e </para></td> 2691 <td><para> format short e </para></td>
2671 <td><para> format('e',6) </para></td> 2692 <td><para> format("e",6) </para></td>
2672 </tr> 2693 </tr>
2673 <tr> 2694 <tr>
2674 <td><para> format short g </para></td> 2695 <td><para> format short g </para></td>
2675 <td><para> format('e',6) </para></td> 2696 <td><para> format("e",6) </para></td>
2676 </tr> 2697 </tr>
2677 </tbody> 2698 </tbody>
2678 </table> 2699 </table>
@@ -2731,11 +2752,11 @@ fseek(fid,offset,1)
2731 <programlisting role="example"><![CDATA[ 2752 <programlisting role="example"><![CDATA[
2732// Scilab version 2753// Scilab version
2733// File beginning: 2754// File beginning:
2734fseek(offset,fid,'set') 2755fseek(offset,fid,"set")
2735// Current position: 2756// Current position:
2736fseek(offset,fid,'cur') 2757fseek(offset,fid,"cur")
2737// File end: 2758// File end:
2738fseek(offset,fid,'end') 2759fseek(offset,fid,"end")
2739 ]]></programlisting> 2760 ]]></programlisting>
2740</refsection> 2761</refsection>
2741 2762
@@ -2757,7 +2778,7 @@ fseek(offset,fid,'end')
2757<refsection id="graymon"> 2778<refsection id="graymon">
2758 <title>graymon</title> 2779 <title>graymon</title>
2759 <para>Set graphics defaults for gray-scale monitors </para> 2780 <para>Set graphics defaults for gray-scale monitors </para>
2760 <para>This Matlab function can be replaced in Scilab by: <emphasis role="strong">set(gdf(),'color_map',[0.75,0.5,0.25]'*ones(1,3))</emphasis>.</para> 2781 <para>This Matlab function can be replaced in Scilab by: <emphasis role="strong">set(gdf(),"color_map",[0.75,0.5,0.25]'*ones(1,3))</emphasis>.</para>
2761</refsection> 2782</refsection>
2762 2783
2763<refsection id="grid"> 2784<refsection id="grid">
@@ -2765,14 +2786,14 @@ fseek(offset,fid,'end')
2765 <para>Grid lines for two- and three-dimensional plots </para> 2786 <para>Grid lines for two- and three-dimensional plots </para>
2766 <para>There is no minor grid in Scilab. There is no equivalent function for Matlab <emphasis role="strong">grid</emphasis> 2787 <para>There is no minor grid in Scilab. There is no equivalent function for Matlab <emphasis role="strong">grid</emphasis>
2767 function in Scilab but it has equivalents:</para> 2788 function in Scilab but it has equivalents:</para>
2768 <para>grid on : may be replaced by <emphasis role="strong">set(gca(),'grid',[1 1])</emphasis></para> 2789 <para>grid on may be replaced by <emphasis role="strong">set(gca(),"grid",[1 1])</emphasis></para>
2769 <para>grid off : may be replaced by <emphasis role="strong">set(gca(),'auto_clear',[-1 -1])</emphasis></para> 2790 <para>grid off may be replaced by <emphasis role="strong">set(gca(),"auto_clear",[-1 -1])</emphasis></para>
2770 <para>grid minor : can be emuled in Scilab by <emphasis role="strong">mtlb_hold</emphasis> but all grids are toggled</para> 2791 <para>grid minor can be emuled in Scilab by <emphasis role="strong">mtlb_hold</emphasis> but all grids are toggled</para>
2771 <para>grid : can be emuled in Scilab by <emphasis role="strong">mtlb_hold</emphasis></para> 2792 <para>grid can be emuled in Scilab by <emphasis role="strong">mtlb_hold</emphasis></para>
2772 <para>grid(axes_handle,'on') : may be replaced by <emphasis role="strong">axes_handle.grid=[1 1]</emphasis></para> 2793 <para>grid(axes_handle,"on") may be replaced by <emphasis role="strong">axes_handle.grid=[1 1]</emphasis></para>
2773 <para>grid(axes_handle,'off') : may be replaced by <emphasis role="strong">axes_handle.grid=[-1 -1]</emphasis></para> 2794 <para>grid(axes_handle,"off") may be replaced by <emphasis role="strong">axes_handle.grid=[-1 -1]</emphasis></para>
2774 <para>grid(axes_handle,'minor') : can be emuled in Scilab by <emphasis role="strong">mtlb_hold</emphasis> but all grids are toggled</para> 2795 <para>grid(axes_handle,"minor") can be emuled in Scilab by <emphasis role="strong">mtlb_hold</emphasis> but all grids are toggled</para>
2775 <para>grid(axes_handle) : can be emuled in Scilab by <emphasis role="strong">mtlb_hold(axes_handle)</emphasis></para> 2796 <para>grid(axes_handle) can be emuled in Scilab by <emphasis role="strong">mtlb_hold(axes_handle)</emphasis></para>
2776</refsection> 2797</refsection>
2777 2798
2778<refsection id="hankel"> 2799<refsection id="hankel">
@@ -2791,11 +2812,11 @@ H2 = hankel(C2,R2)
2791 2812
2792 <programlisting role="example"><![CDATA[ 2813 <programlisting role="example"><![CDATA[
2793// Scilab version 2814// Scilab version
2794N1 = size(C1,'*'); 2815N1 = size(C1,"*");
2795COV1 = [matrix(C1,1,-1),zeros(1,N1)]; 2816COV1 = [matrix(C1,1,-1),zeros(1,N1)];
2796H1 = hank(N1,N1,COV1); 2817H1 = hank(N1,N1,COV1);
2797M2 = size(C2,'*'); 2818M2 = size(C2,"*");
2798N2 = size(R2,'*'); 2819N2 = size(R2,"*");
2799COV2 = [matrix(C2,1,-1),matrix(R2(2:$),1,-1)]; 2820COV2 = [matrix(C2,1,-1),matrix(R2(2:$),1,-1)];
2800H2 = hank(M2,N2,COV2); 2821H2 = hank(M2,N2,COV2);
2801 ]]></programlisting> 2822 ]]></programlisting>
@@ -2805,23 +2826,23 @@ H2 = hank(M2,N2,COV2);
2805 <title>help</title> 2826 <title>help</title>
2806 <para>Display help </para> 2827 <para>Display help </para>
2807 <para>In Scilab you can not get help on a toolbox, only on a function. Scilab equivalent for Matlab <emphasis role="strong">help syntax</emphasis> 2828 <para>In Scilab you can not get help on a toolbox, only on a function. Scilab equivalent for Matlab <emphasis role="strong">help syntax</emphasis>
2808 is <emphasis role="strong">help('names')</emphasis>.</para> 2829 is <emphasis role="strong">help("names")</emphasis>.</para>
2809</refsection> 2830</refsection>
2810 2831
2811<refsection id="hold"> 2832<refsection id="hold">
2812 <title>hold</title> 2833 <title>hold</title>
2813 <para>Hold current graph </para> 2834 <para>Hold current graph </para>
2814 <para>There is no equivalent function for Matlab <emphasis role="strong">hold</emphasis> function in Scilab but it has equivalents:</para> 2835 <para>There is no equivalent function for Matlab <emphasis role="strong">hold</emphasis> function in Scilab but it has equivalents:</para>
2815 <para>hold on : may be replaced by <emphasis role="strong">set(gca(),'auto_clear','off')</emphasis></para> 2836 <para>hold on may be replaced by <emphasis role="strong">set(gca(),"auto_clear","off")</emphasis></para>
2816 <para>hold off : may be replaced by <emphasis role="strong">set(gca(),'auto_clear','on')</emphasis></para> 2837 <para>hold off may be replaced by <emphasis role="strong">set(gca(),"auto_clear","on")</emphasis></para>
2817 <para>hold : can be emuled in Scilab by <emphasis role="strong">mtlb_hold</emphasis></para> 2838 <para>hold can be emuled in Scilab by <emphasis role="strong">mtlb_hold</emphasis></para>
2818</refsection> 2839</refsection>
2819 2840
2820<refsection id="home"> 2841<refsection id="home">
2821 <title>home</title> 2842 <title>home</title>
2822 <para>Move the cursor to the upper left corner of the Command Window</para> 2843 <para>Move the cursor to the upper left corner of the Command Window</para>
2823 <para>Note that Matlab function has no effect in no window mode under Unix/Linux while Scilab one clears the terminal display 2844 <para>Note that Matlab function has no effect in no window mode under Unix/Linux while Scilab one clears the terminal display
2824 as if you were using 'clear' command.</para> 2845 as if you were using "clear" command.</para>
2825</refsection> 2846</refsection>
2826 2847
2827<refsection id="horzcat"> 2848<refsection id="horzcat">
@@ -2835,10 +2856,10 @@ H2 = hank(M2,N2,COV2);
2835<refsection id="ifft"> 2856<refsection id="ifft">
2836 <title>ifft(A[,...])</title> 2857 <title>ifft(A[,...])</title>
2837 <para>Inverse discrete Fourier transform </para> 2858 <para>Inverse discrete Fourier transform </para>
2838 <para>Y = ifft(X) : If X is a vector then Scilab equivalent for Matlab <emphasis role="strong">ifft(X)</emphasis> is 2859 <para>Y = ifft(X): If X is a vector then Scilab equivalent for Matlab <emphasis role="strong">ifft(X)</emphasis> is
2839 <emphasis role="strong">fft(X,1)</emphasis>. If <emphasis role="strong">X</emphasis> is a matrix then Scilab equivalent for Matlab 2860 <emphasis role="strong">fft(X,1)</emphasis>. If <emphasis role="strong">X</emphasis> is a matrix then Scilab equivalent for Matlab
2840 <emphasis role="strong">ifft(X)</emphasis> is <emphasis role="strong">fft(X,1,2,1)</emphasis>.</para> 2861 <emphasis role="strong">ifft(X)</emphasis> is <emphasis role="strong">fft(X,1,2,1)</emphasis>.</para>
2841 <para>Y = ifft(X,n) / Y = ifft(X,n,dim) / Y = ifft(X,[],dim) : There is no Scilab equivalent for all these Matlab uses of 2862 <para>Y = ifft(X,n) / Y = ifft(X,n,dim) / Y = ifft(X,[],dim): There is no Scilab equivalent for all these Matlab uses of
2842 <emphasis role="strong">ifft</emphasis>, in these cases, use <emphasis role="strong">mtlb_ifft</emphasis> instead.</para> 2863 <emphasis role="strong">ifft</emphasis>, in these cases, use <emphasis role="strong">mtlb_ifft</emphasis> instead.</para>
2843</refsection> 2864</refsection>
2844 2865
@@ -2906,7 +2927,7 @@ A = -2147483648
2906 <para>For infinite values, Scilab and Matlab <emphasis role="strong">int8</emphasis> return different values.</para> 2927 <para>For infinite values, Scilab and Matlab <emphasis role="strong">int8</emphasis> return different values.</para>
2907 2928
2908 <programlisting role="example"><![CDATA[ 2929 <programlisting role="example"><![CDATA[
2909// Scilab version 2930% Matlab version
2910A = int8(inf) 2931A = int8(inf)
2911A = 127 2932A = 127
2912A = int8(-inf) 2933A = int8(-inf)
@@ -2947,68 +2968,68 @@ A = 0
2947 <td><para> Scilab </para></td> 2968 <td><para> Scilab </para></td>
2948 </tr> 2969 </tr>
2949 <tr> 2970 <tr>
2950 <td><para> a = isa(x,'logical') </para></td> 2971 <td><para> a = isa(x,"logical") </para></td>
2951 <td><para>a = type(x)==4; </para></td> 2972 <td><para>a = type(x)==4; </para></td>
2952 </tr> 2973 </tr>
2953 <tr> 2974 <tr>
2954 <td><para> b = isa(x,'char') </para></td> 2975 <td><para> b = isa(x,"char") </para></td>
2955 <td><para>b = type(x)==10; </para></td> 2976 <td><para>b = type(x)==10; </para></td>
2956 </tr> 2977 </tr>
2957 <tr> 2978 <tr>
2958 <td><para> c = isa(x,'numeric') </para></td> 2979 <td><para> c = isa(x,"numeric") </para></td>
2959 <td><para>c = or(type(x)==[1,5,8]); </para></td> 2980 <td><para>c = or(type(x)==[1,5,8]); </para></td>
2960 </tr> 2981 </tr>
2961 <tr> 2982 <tr>
2962 <td><para> d = isa(x,'int8') </para></td> 2983 <td><para> d = isa(x,"int8") </para></td>
2963 <td><para>d = typeof(x)=='int8'; </para></td> 2984 <td><para>d = typeof(x)=='int8'; </para></td>
2964 </tr> 2985 </tr>
2965 <tr> 2986 <tr>
2966 <td><para> e = isa(x,'uint8') </para></td> 2987 <td><para> e = isa(x,"uint8") </para></td>
2967 <td><para>e = typeof(x)=='uint8'; </para></td> 2988 <td><para>e = typeof(x)=='uint8'; </para></td>
2968 </tr> 2989 </tr>
2969 <tr> 2990 <tr>
2970 <td><para> f = isa(x,'int16') </para></td> 2991 <td><para> f = isa(x,"int16") </para></td>
2971 <td><para>f = typeof(x)=='int16'; </para></td> 2992 <td><para>f = typeof(x)=="int16"; </para></td>
2972 </tr> 2993 </tr>
2973 <tr> 2994 <tr>
2974 <td><para> g = isa(x,'uint16') </para></td> 2995 <td><para> g = isa(x,"uint16") </para></td>
2975 <td><para>g = typeof(x)=='uint16'; </para></td> 2996 <td><para>g = typeof(x)=="uint16"; </para></td>
2976 </tr> 2997 </tr>
2977 <tr> 2998 <tr>
2978 <td><para> h = isa(x,'int32') </para></td> 2999 <td><para> h = isa(x,"int32") </para></td>
2979 <td><para>h = typeof(x)=='int32'; </para></td> 3000 <td><para>h = typeof(x)=="int32"; </para></td>
2980 </tr> 3001 </tr>
2981 <tr> 3002 <tr>
2982 <td><para> k = isa(x,'uint32') </para></td> 3003 <td><para> k = isa(x,"uint32") </para></td>
2983 <td><para>k = typeof(x)=='uint32'; </para></td> 3004 <td><para>k = typeof(x)=="uint32"; </para></td>
2984 </tr> 3005 </tr>
2985 <tr> 3006 <tr>
2986 <td><para> l = isa(x,'single') </para></td> 3007 <td><para> l = isa(x,"single") </para></td>
2987 <td><para>l = type(x)==1; </para></td> 3008 <td><para>l = type(x)==1; </para></td>
2988 </tr> 3009 </tr>
2989 <tr> 3010 <tr>
2990 <td><para> m = isa(x,'double') </para></td> 3011 <td><para> m = isa(x,"double") </para></td>
2991 <td><para>m = type(x)==1; </para></td> 3012 <td><para>m = type(x)==1; </para></td>
2992 </tr> 3013 </tr>
2993 <tr> 3014 <tr>
2994 <td><para> n = isa(x,'cell') </para></td> 3015 <td><para> n = isa(x,"cell") </para></td>
2995 <td><para>n = typeof(x)=='ce'; </para></td> 3016 <td><para>n = typeof(x)=="ce"; </para></td>
2996 </tr> 3017 </tr>
2997 <tr> 3018 <tr>
2998 <td><para> o = isa(x,'struct') </para></td> 3019 <td><para> o = isa(x,"struct") </para></td>
2999 <td><para>o = typeof(x)=='st'; </para></td> 3020 <td><para>o = typeof(x)=="st"; </para></td>
3000 </tr> 3021 </tr>
3001 <tr> 3022 <tr>
3002 <td><para> p = isa(x,'function_handle') </para></td> 3023 <td><para> p = isa(x,"function_handle") </para></td>
3003 <td><para>p = type(x)==13; </para></td> 3024 <td><para>p = type(x)==13; </para></td>
3004 </tr> 3025 </tr>
3005 <tr> 3026 <tr>
3006 <td><para> q = isa(x,'sparse') </para></td> 3027 <td><para> q = isa(x,"sparse") </para></td>
3007 <td><para>q = type(x)==5; </para></td> 3028 <td><para>q = type(x)==5; </para></td>
3008 </tr> 3029 </tr>
3009 <tr> 3030 <tr>
3010 <td><para> r = isa(x,'lti') </para></td> 3031 <td><para> r = isa(x,"lti") </para></td>
3011 <td><para>r = typeof(x)=='state-space'; </para></td> 3032 <td><para>r = typeof(x)=="state-space"; </para></td>
3012 </tr> 3033 </tr>
3013 </tbody> 3034 </tbody>
3014 </table> 3035 </table>
@@ -3028,7 +3049,7 @@ A = 0
3028 <para>If A is not a structure and/or field is not a character string: </para> 3049 <para>If A is not a structure and/or field is not a character string: </para>
3029 <para>Scilab equivalent is <emphasis role="strong">%F</emphasis>.</para> 3050 <para>Scilab equivalent is <emphasis role="strong">%F</emphasis>.</para>
3030 <para>If A is a structure and field is a character string: </para> 3051 <para>If A is a structure and field is a character string: </para>
3031 <para>Scilab equivalent is <emphasis role="strong">allfields=getfield(1,A);tf=or(allfields(3:\$)==field);</emphasis>.</para> 3052 <para>Scilab equivalent is <emphasis role="strong">allfields=getfield(1,A);tf=or(allfields(3:$)==field);</emphasis>.</para>
3032</refsection> 3053</refsection>
3033 3054
3034<refsection id="isfinite"> 3055<refsection id="isfinite">
@@ -3042,7 +3063,7 @@ A = 0
3042 <title>ishold</title> 3063 <title>ishold</title>
3043 <para>Return hold state </para> 3064 <para>Return hold state </para>
3044 <para>There is no equivalent function for Matlab <emphasis role="strong">ishold</emphasis> function in Scilab but it can be emuled by: 3065 <para>There is no equivalent function for Matlab <emphasis role="strong">ishold</emphasis> function in Scilab but it can be emuled by:
3045 <emphasis role="strong">get(gca(),'auto_clear')=='off';</emphasis>.</para> 3066 <emphasis role="strong">get(gca(),"auto_clear")=="off";</emphasis>.</para>
3046</refsection> 3067</refsection>
3047 3068
3048<refsection id="isletter"> 3069<refsection id="isletter">
@@ -3052,21 +3073,14 @@ A = 0
3052 However it can be replaced as follows. Using <emphasis role="strong">mtlb_isletter</emphasis> will give a prettier code.</para> 3073 However it can be replaced as follows. Using <emphasis role="strong">mtlb_isletter</emphasis> will give a prettier code.</para>
3053 3074
3054 <programlisting role="example"><![CDATA[ 3075 <programlisting role="example"><![CDATA[
3055// Scilab version 3076% Matlab version
3056tf = isletter(A) 3077tf = isletter(A)
3057 ]]></programlisting> 3078 ]]></programlisting>
3058
3059<para>If A is a String matrix: </para>
3060
3061 <programlisting role="example"><![CDATA[ 3079 <programlisting role="example"><![CDATA[
3062// Scilab version 3080// Scilab version
3081// If A is a String matrix:
3063tf = ((asciimat(A)>=65) & (asciimat(A)<=90)) | ((asciimat(A)>=97) & (asciimat(A)<=122)) 3082tf = ((asciimat(A)>=65) & (asciimat(A)<=90)) | ((asciimat(A)>=97) & (asciimat(A)<=122))
3064 ]]></programlisting> 3083// If A is not a String matrix:
3065
3066<para>If A is not a String matrix: </para>
3067
3068 <programlisting role="example"><![CDATA[
3069// Scilab version
3070tf = zeros(A) 3084tf = zeros(A)
3071 ]]></programlisting> 3085 ]]></programlisting>
3072</refsection> 3086</refsection>
@@ -3109,25 +3123,22 @@ tf = %T
3109 3123
3110<refsection id="isspace"> 3124<refsection id="isspace">
3111 <title>isspace</title> 3125 <title>isspace</title>
3112 <para>Detect elements that are ASCII white spaces There is no equivalent function to Matlab <emphasis role="strong">isspace</emphasis> 3126 <para>Detect elements that are ASCII white spaces </para>
3127 <para>There is no equivalent function to Matlab <emphasis role="strong">isspace</emphasis>
3113 function in Scilab. However it can be replaced as shown below.</para> 3128 function in Scilab. However it can be replaced as shown below.</para>
3114 3129
3115 <programlisting role="example"><![CDATA[ 3130 <programlisting role="example"><![CDATA[
3116// Scilab version 3131% Matlab version
3117tf = isspace(A) 3132tf = isspace(A)
3118 ]]></programlisting> 3133 ]]></programlisting>
3119 3134
3120<para>If A is a String matrix: </para> 3135<para> </para>
3121 3136
3122 <programlisting role="example"><![CDATA[ 3137 <programlisting role="example"><![CDATA[
3123// Scilab version 3138// Scilab version
3139// If A is a String matrix:
3124tf = asciimat(A)==32 3140tf = asciimat(A)==32
3125 ]]></programlisting> 3141// If A is not a String matrix:
3126
3127<para>If A is not a String matrix: </para>
3128
3129 <programlisting role="example"><![CDATA[
3130// Scilab version
3131tf = zeros(A) 3142tf = zeros(A)
3132 ]]></programlisting> 3143 ]]></programlisting>
3133</refsection> 3144</refsection>
@@ -3141,20 +3152,21 @@ tf = zeros(A)
3141 3152
3142<refsection id="isvector"> 3153<refsection id="isvector">
3143 <title>isvector</title> 3154 <title>isvector</title>
3144 <para>Determine if input is a vector There is no Scilab equivalent function for Matlab <emphasis role="strong">tf=isvector(A)</emphasis> 3155 <para>Determine if input is a vector </para>
3156 <para>There is no Scilab equivalent function for Matlab <emphasis role="strong">tf=isvector(A)</emphasis>
3145 but there are equivalent instructions:</para> 3157 but there are equivalent instructions:</para>
3146 <para>If A is not a character string:: Scilab equivalent is <emphasis role="strong">tf = size(A,1)==1 | size(A,2)==1</emphasis>.</para> 3158 <para>If A is not a character string: Scilab equivalent is <emphasis role="strong">tf = size(A,1)==1 | size(A,2)==1</emphasis>.</para>
3147 <para>If A is a character string:: Scilab equivalent is <emphasis role="strong">tf = size(asciimat(A),1)==1 | size(asciimat(A),2)==1</emphasis>.</para> 3159 <para>If A is a character string: Scilab equivalent is <emphasis role="strong">tf = size(asciimat(A),1)==1 | size(asciimat(A),2)==1</emphasis>.</para>
3148</refsection> 3160</refsection>
3149 3161
3150<refsection id="length"> 3162<refsection id="length">
3151 <title>length(A)</title> 3163 <title>length(A)</title>
3152 <para>Length of vector </para> 3164 <para>Length of vector </para>
3153 <para>If <emphasis role="strong">A</emphasis> is a vector, Scilab equivalent for <emphasis role="strong">length(A)</emphasis> is 3165 <para>If <emphasis role="strong">A</emphasis> is a vector, Scilab equivalent for <emphasis role="strong">length(A)</emphasis> is
3154 <emphasis role="strong">size(A,'*')</emphasis>.</para> 3166 <emphasis role="strong">size(A,"*")</emphasis>.</para>
3155 <para>If <emphasis role="strong">A</emphasis> is a matrix, Scilab equivalent for <emphasis role="strong">length(A)</emphasis> is 3167 <para>If <emphasis role="strong">A</emphasis> is a matrix, Scilab equivalent for <emphasis role="strong">length(A)</emphasis> is
3156 <emphasis role="strong">max(size(A))</emphasis>.</para> 3168 <emphasis role="strong">max(size(A))</emphasis>.</para>
3157 <para>If <emphasis role="strong">A</emphasis> contains character strings, String matrix has to be converted to a 'character' string matrix using 3169 <para>If <emphasis role="strong">A</emphasis> contains character strings, String matrix has to be converted to a "character" string matrix using
3158 <emphasis role="strong">mstr2sci</emphasis> (Using <emphasis role="strong">asciimat</emphasis> to convert will give the same result).</para> 3170 <emphasis role="strong">mstr2sci</emphasis> (Using <emphasis role="strong">asciimat</emphasis> to convert will give the same result).</para>
3159 <para>Scilab <emphasis role="strong">length</emphasis> is different from Matlab <emphasis role="strong">length</emphasis>.</para> 3171 <para>Scilab <emphasis role="strong">length</emphasis> is different from Matlab <emphasis role="strong">length</emphasis>.</para>
3160</refsection> 3172</refsection>
@@ -3185,7 +3197,7 @@ tf = zeros(A)
3185 <title>logical(A)</title> 3197 <title>logical(A)</title>
3186 <para>Convert numeric values to logical </para> 3198 <para>Convert numeric values to logical </para>
3187 <para>If <emphasis role="strong">A</emphasis> is not an empty matrix, Scilab equivalent for <emphasis role="strong">logical(A)</emphasis> 3199 <para>If <emphasis role="strong">A</emphasis> is not an empty matrix, Scilab equivalent for <emphasis role="strong">logical(A)</emphasis>
3188 is is not equal to <emphasis role="strong">0</emphasis> else Scilab equivalent is <emphasis role="strong">[]</emphasis>.</para> 3200 is A not equal to <emphasis role="strong">0</emphasis> else Scilab equivalent is <emphasis role="strong">[]</emphasis>.</para>
3189</refsection> 3201</refsection>
3190 3202
3191<refsection id="lookfor"> 3203<refsection id="lookfor">
@@ -3217,13 +3229,7 @@ tf = zeros(A)
3217 in Matlab, dimension parameter is given in a third input parameter (in this case, second parameter must be 3229 in Matlab, dimension parameter is given in a third input parameter (in this case, second parameter must be