1
<?xml version="1.0" encoding="ISO-8859-1"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2008 - INRIA - Farid BELAHCENE
6
* This file must be used under the terms of the CeCILL.
7
* This source file is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
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:ns3="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="char" xml:lang="en">
15
<refname>char</refname>
16
<refpurpose>fun��o char</refpurpose>
19
<title>Seq��ncia de Chamamento</title>
21
y=char(st1,st2,st3,....)
25
<title>Par�metros</title>
30
<para>um cell de arrays de strings, ou um array de c�digos ASCII
35
<term>st1,st2,st3</term>
37
<para>arrays de strings</para>
43
<para>vetor (coluna) de strings </para>
49
<title>Descri��o</title>
51
<literal>Argumento de uma entrada :</literal>
54
Dado um<literal> cell de arrays de strings x</literal>, esta fun��o
55
retorna um vetor de strings <literal>y </literal>no qual as linhas s�o
56
componentes do cell de strings.
59
Dado um<literal> array de c�digos ASCII x,</literal> esta fun��o
60
retorna um array de strings <literal>y</literal> correspondente aos
61
c�digos ASCII. Se dims (<literal>x</literal>)=[n1,n2,n3,n4,....], ent�o o
62
valor retornado tem o mesmo tamanho que o valor de entrada, ao inv�s do
63
segundo dims, dims(<literal>y</literal>)=[n1,n3,n4,..]
66
<literal>Argumento de mais de uma entrada :</literal>
69
Dados <literal>arrays de strings</literal>
70
<literal>st1,st2,st3,...</literal>, esta fun��o retorna um vetor de
71
strings no qual as linhas s�o os componentes de <literal>st1,st2,st3,...
73
<literal> No vetor </literal><literal>y </literal>o comprimento
74
de todos os strings sti � completado por lacunas, para terem o mesmo
75
comprimento que o comprimento m�ximo de sti.
79
<title>Exemplos</title>
80
<programlisting role="example"><![CDATA[
81
//exemplo com uma hipermatriz de c�digos ASCII :
82
x=hypermat([4,2,3],61:84);
87
//Exemplo com mais de um argumento :
93
//todos os strings s�o completados por "lacunas" para terem o mesmo comprimento : 6
97
<refsection role="see also">
98
<title>Ver Tamb�m</title>
99
<simplelist type="inline">
101
<link linkend="asciimat">asciimat</link>