Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Ajuda do Scilab >> Funções > 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

  • exec — execução de arquivo script ("script" significa roteiro)
  • edit — edição de funções
  • macrovar — variáveis de uma função
Report an issue
<< execstr Funções funcprot >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:18:24 CEST 2014