[doc] misc. fix & improvements
[scilab.git] / scilab / modules / m2sci / help / en_US / m2sci_equivalents / r / randperm.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) 2013 - Scilab Enterprises - Paul Bignier
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_randperm">
20     <refnamediv>
21         <refname>randperm (Matlab function)</refname>
22         <refpurpose>Uniformly distributed random numbers and arrays</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 randperm(n)
40 randperm(n, m)
41 ]]></screen>
42                 </td>
43                 <td>
44                     <screen><![CDATA[
45 grand(1, "prm", 1:n)
46 grand(1, "prm", 1:n)(1:m)
47 ]]></screen>
48                 </td>
49                 <td>
50                     <programlisting role="example"><![CDATA[
51 grand(1, "prm", 1:10)
52 grand(1, "prm", 1:10)(1:6)
53 ]]></programlisting>
54                 </td>
55             </tr>
56         </informaltable>
57     </refsection>
58 </refentry>