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:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="ind2sub" xml:lang="en">
15
<refname>ind2sub</refname>
16
<refpurpose>convers�o de �ndice linear para matriz de valores
21
<title>Seq��ncia de Chamamento</title>
22
<synopsis>[i1,i2,..] =ind2sub(dims,I)
27
<title>Par�metros</title>
32
<para>vetor com as dimens�es da matriz </para>
38
<para>vetor com os dados �ndices lineares </para>
44
<para>valores subescritos (de mesma forma que
52
<para>matriz cujas colunas cont�m os valores subescritos.</para>
58
<title>Descri��o</title>
60
<literal>ind2sub</literal> � usado para determinar os valores
61
subescritos equivalentes que correspondem a um �ndice �nico num "array".
62
<literal>[i1,i2,..] = ind2sub(dims,I)</literal> retorna os "arrays"
63
<literal>i1</literal>, <literal>i2</literal>, ... contendo os subescritos
64
das linha, coluna, ... equivalentes correspondente � matriz de �ndices
65
<literal>I</literal> para uma matriz de tamanho <literal>dims</literal>.
66
<literal>Mi=ind2sub(dims,I)</literal> retorna uma matriz
67
<literal>Mi</literal> cujas colunas s�o os "arrays"
68
<literal>i1(:)</literal>, <literal>i2(:)</literal>, ...
72
<title>Exemplos</title>
73
<programlisting role="example"><![CDATA[
15
<refname>ind2sub</refname>
16
<refpurpose>convers�o de �ndice linear para matriz de valores
21
<title>Seq��ncia de Chamamento</title>
22
<synopsis>[i1,i2,..] =ind2sub(dims,I)
27
<title>Par�metros</title>
32
<para>vetor com as dimens�es da matriz </para>
38
<para>vetor com os dados �ndices lineares </para>
44
<para>valores subescritos (de mesma forma que
52
<para>matriz cujas colunas cont�m os valores subescritos.</para>
58
<title>Descri��o</title>
60
<literal>ind2sub</literal> � usado para determinar os valores
61
subescritos equivalentes que correspondem a um �ndice �nico num "array".
62
<literal>[i1,i2,..] = ind2sub(dims,I)</literal> retorna os "arrays"
63
<literal>i1</literal>, <literal>i2</literal>, ... contendo os subescritos
64
das linha, coluna, ... equivalentes correspondente � matriz de �ndices
65
<literal>I</literal> para uma matriz de tamanho <literal>dims</literal>.
66
<literal>Mi=ind2sub(dims,I)</literal> retorna uma matriz
67
<literal>Mi</literal> cujas colunas s�o os "arrays"
68
<literal>i1(:)</literal>, <literal>i2(:)</literal>, ...
72
<title>Exemplos</title>
73
<programlisting role="example"><![CDATA[
74
74
ind2sub([2,3,2],1:12)
75
75
[i,j,k]=ind2sub([2,3,2],1:12)
76
76
]]></programlisting>
78
<refsection role="see also">
79
<title>Ver Tamb�m</title>
80
<simplelist type="inline">
82
<link linkend="sub2ind">sub2ind</link>
85
<link linkend="extraction">extraction</link>
88
<link linkend="insertion">insertion</link>
78
<refsection role="see also">
79
<title>Ver Tamb�m</title>
80
<simplelist type="inline">
82
<link linkend="sub2ind">sub2ind</link>
85
<link linkend="extraction">extraction</link>
88
<link linkend="insertion">insertion</link>