Developer FAQ: Difference between revisions
Jump to navigation
Jump to search
(Finding source for a given function) |
(finding source: no need for regular expression, and shouldn't have ^) |
||
Line 4: | Line 4: | ||
octave:1> which addpath | octave:1> which addpath | ||
'addpath' is a built-in function from the file libinterp/corefcn/load-path.cc | 'addpath' is a built-in function from the file libinterp/corefcn/load-path.cc | ||
While editing the file, the function definition | While editing the file, the function definition can be found by searching for something like | ||
(addpath, | |||
Revision as of 07:39, 10 May 2016
1. How can I find which file implements a given command?
From within Octave, use 'which':
octave:1> which addpath 'addpath' is a built-in function from the file libinterp/corefcn/load-path.cc
While editing the file, the function definition can be found by searching for something like
(addpath,