13
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="m2sci_case">
15
<refname>case (Matlab function)</refname>
16
<refpurpose>Case switch</refpurpose>
19
<title>Matlab/Scilab equivalent</title>
20
<informaltable border="1" width="100%">
23
<emphasis role="bold">Matlab</emphasis>
26
<emphasis role="bold">Scilab</emphasis>
31
<programlisting role="example"><![CDATA[
36
<programlisting role="example"><![CDATA[
44
<title>Particular cases</title>
46
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.).
15
<refname>case (Matlab function)</refname>
16
<refpurpose>Case switch</refpurpose>
19
<title>Matlab/Scilab equivalent</title>
20
<informaltable border="1" width="100%">
23
<emphasis role="bold">Matlab</emphasis>
26
<emphasis role="bold">Scilab</emphasis>
31
<programlisting role="example"><![CDATA[
36
<programlisting role="example"><![CDATA[
44
<title>Particular cases</title>
46
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.).