Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - Français

Change language to:
English - 日本語 - Português - Русский

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

Aide de Scilab >> Fonctions avancées > fun2string

fun2string

generates ASCII definition of a Scilab function

Calling Sequence

txt = fun2string(fun, name)

Arguments

fun

a function type variable.

name

a character string, the generated function name.

txt

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

Description

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.

Examples

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

See Also

  • exec — exécution d'un script (fichier de commandes)
  • edit — function editing
  • macrovar — variables d'une fonction
Report an issue
<< edit Fonctions avancées funcprot >>

Copyright (c) 2022-2024 (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:
Wed Apr 01 10:21:53 CEST 2015