* Bug 15891 fixed: [doc] matrix-wise trigo pages => subsection
[scilab.git] / scilab / modules / elementary_functions / help / pt_BR / ndims.xml
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) 2008 - INRIA - Serge STEER
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:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="ndims" xml:lang="pt">
17     <refnamediv>
18         <refname>ndims</refname>
19         <refpurpose>número de dimensões de um array</refpurpose>
20     </refnamediv>
21     <refsection>
22         <title>Parâmetros</title>
23         <variablelist>
24             <varlistentry>
25                 <term>A</term>
26                 <listitem>
27                     <para>um array</para>
28                 </listitem>
29             </varlistentry>
30             <varlistentry>
31                 <term>n</term>
32                 <listitem>
33                     <para>inteiro, o número de dimensões do array</para>
34                 </listitem>
35             </varlistentry>
36         </variablelist>
37     </refsection>
38     <refsection>
39         <title>Descrição</title>
40         <para>
41             <literal>n=ndims(A)</literal> retorna o número de dimensões de um
42             array <literal>A</literal>. <literal>n</literal> é maior que ou igual a
43             2.
44         </para>
45     </refsection>
46     <refsection>
47         <title>Exemplos</title>
48         <programlisting role="example"><![CDATA[
49 A=rand(2,3);
50 ndims(A)
51
52 A=rand(2,3,2);
53 size(A),ndims(A)
54
55 H=[1/%s,1/(%s+1)]
56 ndims(H)
57  ]]></programlisting>
58     </refsection>
59     <refsection role="see also">
60         <title>Ver Também</title>
61         <simplelist type="inline">
62             <member>
63                 <link linkend="size">size</link>
64             </member>
65         </simplelist>
66     </refsection>
67 </refentry>