<< dispbpt functions listfunctions >>

removed >> removed > 5-5-2 > functions > 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

History

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 >>