How to add a path permanatly in matlab and save it?

How to add a path permanantly in matlab and save it?

1

2 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:

4

Changes 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 startup

Then 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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like