- Manuel Scilab
- Scilab
- Mots clef Scilab
- TMPDIR
- abort
- argn
- banner
- boolean
- break
- clear
- clearglobal
- comp
- debug
- errcatch
- errclear
- error
- exists
- exit
- external
- extraction
- getos
- getshell
- gstacksize
- ieee
- insertion
- inv_coeff
- iserror
- isglobal
- macr2tree
- matrices
- matrix
- mode
- mtlb_mode
- names
- null
- pause
- perl
- poly
- predef
- quit
- rational
- resume
- sciargs
- scilab
- stacksize
- startup
- symbols
- testmatrix
- type
- typename
- user
- varn
- what
- where
- whereami
- who
- whos
- with_atlas
- with_javasci
- with_macros_source
- with_pvm
- add_demo
- clearfun
- continue
- delbpt
- dispbpt
- edit
- error_table
- format
- funcprot
- funptr
- getdebuginfo
- getmd5
- getmemory
- getmodules
- getscilabmode
- getvariablesonstack
- getversion
- intppty
- lasterror
- macr2lst
- newfun
- readgateway
- setbpt
- ver
- warning
- who_user
- with_module
- with_texmacs
- with_tk
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
newfun
add a name in the table of functions
Calling Sequence
newfun(function_name, function_ptr)
Arguments
- function_name
A character string, giving a valid variable name.
- function_ptr
a positive number with integer value (see below).
Description
Utility function (for experts only).
Adds the name function_name
in the table of
functions known to the interpreter.
function_ptr
is an integer
1000*fun+fin
where fun
and
fin
is the internal coding of the primitive
function_name
.
This function may be useful to associate a primitive to a
gateway called in "gw_user.c"
(fun=14
). Note however that the ilib_build function is a more easy way
to extend Scilab with new functions based on C C++ or Fortran
code.
This function may also be used to add an alias or to rename to an existing primitive function.
Used with funptr
and clearfun
one can add an alias or rename an existing primitive function.
Examples
See Also
<< macr2lst | Scilab | readgateway >> |