Scilab Function

fun2string - generates ascii definition of a scilab function

### Sequence d'appel

  `txt=fun2string(fun,name)`

### Parametres

- `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 allow to re-generate the the code. Note that as comments are not retained in loaded functions the comments cannot be regenerated. The generated code is indented and beautified.

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

### Exemples

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

### Voir aussi

`getf` `edit` `macrovar`