<< dispbpt functions listfunctions >>

removed >> removed > 5-5-2 > functions > fun2string

fun2string

gera definição ASCII de uma função Scilab

Seqüência de Chamamento

txt = fun2string(fun, name)

Parâmetros

fun

variável do tipo função

name

string, o nome da função gerada

txt

vetor coluna de strings, o texto fornecendo as instruções Scilab

Descrição

Dado um pseudo-código de função Scilab carregada fun2string permite gerar novamente o código. O código gerado é identado e embelezado.

O mecanismo é similar, mas mais simples que o de mfile2sci. Também pode ser adaptado para traduções de sintaxe.

Exemplos

txt = fun2string(asinh,'foo');
write(%io(2),txt,'(a)')

Ver Também

Histórico

VersionDescription
5.5.2 fun2string was removed after Scilab 5.5.2. string, or better, tree2code(macr2tree(fun)) replace it.

Report an issue
<< dispbpt functions listfunctions >>