Jump to navigation Jump to search
654 bytes added ,  09:39, 3 October 2018
Add Category:Development some extensions.
1. == ''How can I find which file implements a given command?''==
From within Octave, use <code>which</code>:<syntaxhighlight lang="Octave">>> which help</syntaxhighlight>  'whichhelp'is a function from the file /some/path/m/help/help.m If the desired function is a m-file, one can simply edit it inside the GUI, just type: octave<syntaxhighlight lang="Octave">>> edit help</syntaxhighlight> Some functions are already compiled (a.k.a. ''built-in functions''), for example:1 <syntaxhighlight lang="Octave">>> which addpath </syntaxhighlight>  'addpath' is a built-in function from the file libinterp/corefcn/load-path.ccWhile editing This function is to be found in Octave's source code, in this case at []. If the filesource code is cloned to a local machine, you can edit the function definition can be found by searching repective file and search for something like "<code> (addpath,</code>". [[Category:Development]]

Navigation menu