How to add a path permanantly in matlab and save it?
12 Answers
Here is The Mathworks' documentation on setting the search path in MATLAB; note the section at the bottom titled "How MATLAB Stores the Search Path" about making changes permanent:
4Changes to your path will be continued if you add the path to your startup.m file. You can change it in Matlab by entering into the Matlab command window:
edit startupThen add the path to file the same way you would in the command line
addpath('/path/to/dir');You can also use startup.m to permanently change figure defaults and most other settings.