- Scilab help
- Advanced functions
- Built-in & external
- Libraries
- profiling
- argn
- bytecode
- bytecodewalk
- code2str
- comp
- deff
- edit
- exec
- execstr
- fun2string
- funcprot
- function
- functions
- getd
- head_comments
- listfunctions
- macr2lst
- macr2tree
- macro
- macrovar
- mode
- overloading
- recompilefunction
- sciargs
- str2code
- tree2code
- varargin
- varargout
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
integer
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(functionname)
create a functionname.sci
file in
the current directory.
If functionname
is not a valid macro or function name
edit(functionname)
opens the file with file name 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
//open editor with text of this function edit('edit') //open editor for a new function edit('myfunction') //open the file bar.sci in TMPDIR directory edit(fullfile(TMPDIR+'bar.sci')) // open the file test_run.sci at line 123 // relatively to the definition of test_run() edit('test_run', 123)
See Also
Report an issue | ||
<< deff | Advanced functions | exec >> |