* Bug 16365 fixed: median(m,'r'|'c') was wrong after 5dc990
[scilab.git] / scilab / modules / m2sci / help / en_US / m2sci_equivalents / b / box.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="m2sci_box">
17     <refnamediv>
18         <refname>box (Matlab function)</refname>
19         <refpurpose>Display axes border</refpurpose>
20     </refnamediv>
21     <refsection>
22         <title>Matlab/Scilab equivalent</title>
23         <informaltable border="1" width="100%">
24             <tr>
25                 <td align="center">
26                     <emphasis role="bold">Matlab</emphasis>
27                 </td>
28                 <td align="center">
29                     <emphasis role="bold">Scilab</emphasis>
30                 </td>
31             </tr>
32             <tr>
33                 <td>
34                     <programlisting role="example"><![CDATA[
35 box
36 ]]></programlisting>
37                 </td>
38                 <td>
39                     <programlisting role="example"><![CDATA[
40 No equivalent
41 ]]></programlisting>
42                 </td>
43             </tr>
44         </informaltable>
45     </refsection>
46     <refsection>
47         <title>Particular cases</title>
48         <para>
49             There is no Scilab equivalent function for Matlab box but it can be easily replaced by Scilab equivalent instructions.
50         </para>
51     </refsection>
52     <refsection>
53         <title>Examples</title>
54         <informaltable border="1" width="100%">
55             <tr>
56                 <td align="center">
57                     <emphasis role="bold">Matlab</emphasis>
58                 </td>
59                 <td align="center">
60                     <emphasis role="bold">Scilab</emphasis>
61                 </td>
62             </tr>
63             <tr>
64                 <td>
65                     <programlisting role="example"><![CDATA[
66 box on
67 box off
68 box
69 box(h,'on')
70 box(h,'off')
71 box(h)
72 ]]></programlisting>
73                 </td>
74                 <td>
75                     <programlisting role="example"><![CDATA[
76 a = gca();
77 a.box = "on";
78 a.box = "off";
79 if a.box=="on" then a.box="off";else a.box="on";end;
80 h.box = "on";
81 h.box = "off";
82 if h.box=="on" then h.box="off";else h.box="on";end;
83 ]]></programlisting>
84                 </td>
85             </tr>
86         </informaltable>
87     </refsection>
88 </refentry>