Scilab Function
Last update : 23/10/2007

fun2string - generates ascii definition of a scilab function

Calling Sequence

txt=fun2string(fun,name)

Parameters

Description

Given a loaded Scilab function pseudo-code fun2string allow to re-generate the 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

getf ,   edit ,   macrovar ,