- Scilab help
- Scilab
- Scilab keywords
- TMPDIR
- abort
- add_demo
- argn
- banner
- boolean
- break
- clear
- clearfun
- clearglobal
- comp
- continue
- debug
- delbpt
- dispbpt
- edit
- errcatch
- errclear
- error
- error_table
- exists
- exit
- external
- extraction
- format
- funcprot
- funptr
- getdebuginfo
- getmd5
- getmemory
- getmodules
- getos
- getscilabmode
- getshell
- getvariablesonstack
- getversion
- gstacksize
- ieee
- insertion
- intppty
- inv_coeff
- iserror
- isglobal
- lasterror
- macr2lst
- macr2tree
- matrices
- matrix
- mode
- mtlb_mode
- names
- newfun
- null
- pause
- perl
- poly
- predef
- quit
- rational
- readgateway
- resume
- sciargs
- scilab
- setbpt
- stacksize
- startup
- symbols
- testmatrix
- type
- typename
- user
- varn
- ver
- warning
- what
- where
- whereami
- who
- who_user
- whos
- with_atlas
- with_javasci
- with_macros_source
- with_module
- with_pvm
- 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 | errcatch >> |