Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語 - Русский

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

Aide de Scilab >> Fonctions avancées > fun2string


generates ASCII definition of a Scilab function

Calling Sequence

txt = fun2string(fun, name)



a function type variable.


a character string, the generated function name.


a column vector of strings, the text giving the Scilab instructions.


Given a loaded Scilab function pseudo-code fun2string allows to re-generate the code. The generated code is indented and beautified.

The mechanism is similar, but simpler than the mfile2sci one. It may be adapted for syntax translations.


txt = fun2string(asinh,'foo');

See Also

  • exec — exécution d'un script (fichier de commandes)
  • edit — function editing
  • macrovar — variables d'une fonction
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:54:44 CEST 2014