- Aide Scilab
- Scilab
- Mots clés 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
edit
function editing
Calling Sequence
edit(functionname[,linenumber])
Arguments
- functionname
character string
- linenumber
number
Description
If functionname is the name of a defined scilab function
edit(functionname)
try to open the associated file
functionname.sci
.
If functionname is the name of a undefined scilab function
edit
create a functionname.sci file in the TMPDIR
directory.
If functionname is not a valid macro or function name
edit
opens the file with filename equals to functionname.
If linenumber is given, the file is opened at this line relatively to the definition of the macro named as the file itself. If the macro definition is not found, the file is opened at line given by linenumber.
Examples
edit('edit') //opens editor with text of this function edit('myfunction') //opens editor for a new function edit('/home/foo/bar.sci') //opens the file bar.sci edit('test_run', 123) // opens the file test_run.sci at line 123 relatively to the definition of test_run()
<< dispbpt | Scilab | error_table >> |