[doc] misc. fix & improvements
[scilab.git] / scilab / modules / m2sci / help / en_US / m2sci_equivalents / v / vertcat.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"
17           xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
18           xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
19           xml:id="m2sci_vertcat">
20     <refnamediv>
21         <refname>vertcat (Matlab function)</refname>
22         <refpurpose>Vertical concatenation</refpurpose>
23     </refnamediv>
24     <refsection>
25         <title>Matlab/Scilab equivalent</title>
26         <informaltable border="1" width="100%">
27             <tr>
28                 <td align="center">
29                     <emphasis role="bold">Matlab</emphasis>
30                 </td>
31                 <td align="center">
32                     <emphasis role="bold">Scilab</emphasis>
33                 </td>
34                 <td/>
35             </tr>
36             <tr>
37                 <td>
38                     <screen><![CDATA[
39 vertcat(A, B,..)
40 ]]></screen>
41                 </td>
42                 <td>
43                     <screen><![CDATA[
44 cat(1, A, B,..)
45 [A ; B ; ..]
46 ]]></screen>
47                 </td>
48                 <td>
49                     <programlisting role="example"><![CDATA[
50 m = [1:6 ; 7:12]
51 cat(1, m, m, m)
52 [m ; m]
53
54 h = matrix(m,2,3,2)
55 cat(1, h, h)
56 [h ; h]
57 ]]></programlisting>
58                 </td>
59             </tr>
60         </informaltable>
61     </refsection>
62 </refentry>