File: fun2string.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (29 lines) | stat: -rw-r--r-- 940 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
fun2string         Scilab Group         Scilab Function          fun2string
NAME
   fun2string - generates ascii definition of a scilab function
  
CALLING SEQUENCE
 txt=fun2string(fun,name)
PARAMETERS
 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.
  
EXAMPLE
 txt=fun2string(asinh,'foo');
 write(%io(2),txt,'(a)')
SEE ALSO
   getf, edit, macrovar