How can I move my MATLAB Path from my old version of MATLAB over to a new version?
20 views (last 30 days)
Show older comments
I would like to move my MATLAB Path from my old version of MATLAB over to a new version.
All of the MATLAB Path information is saved in the pathdef.m file. What you can do is save the pathdef.m file from your current installation of MATLAB before you uninstall it. With normal installation settings, you can usually find pathdef.m file in the following directory:
We suggest uninstalling MATLAB rather than installing on top of a current installation.
After the new version of MATLAB is installed:
1. Open the old pathdef.m file and the new pathdef.m file.
2. Copy and paste all of the directories you wish to keep on the MATLAB Path from the old pathdef.m file into the new pathdef.m file. The new pathdef.m file should already have the MATLAB and Toolbox directories listed, so you should only have to add your personal directories.
3. Save the new pathdef.m file.
4. Open MATLAB and run the PATHDEF command.
5. Run the PATH command to make sure the path was set up properly.
More Answers (1)
KAE on 1 Oct 2019
Edited: KAE on 1 Oct 2019
Upgrading to R2019b from R2019a, I copied my personal directories into the new pathdef.m file using the R2019b matlab editor and ran pathdef, but they did not appear on the path command until I restarted R2019b.
Also note that you have to run Matlab as an administrator in order to edit pathdef.m . This can be done in Windows 10 by right clicking on the R2019b icon, choosing 'More', then 'Run as Administrator'.
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!