MATLAB search path
The MATLAB search path is the list of directories that MATLAB looks in for files.
Whenever you load a function into Rave, it must be located on the search path.
To view your search path:
- Open MATLAB
- In the menu bar, click "File" and then "Set Path..."
- Make any desired changes using this GUI
- When you are done, click "Save" and then "Close"
The folders are listed in the order in which they are searched, starting at the top of the list. MATLAB will stop looking for files as soon as it finds one with the matching file name in any of these folders. This means that if you have multiple functions with the same name, Rave will always use whichever one is first on the search path, regardless of whether that was actually the file you selected when you initially loaded the function.
Rave will not let you load a function if there is another function with the same name higher on your search path; however if such a situation arises at a later time, Rave won't know about it and it will break your Rave session.