A new version of MATLAB ports over most user preferences if there is an older release of MATLAB on the system. However, this is a limitation where the user defined paths are not carried over from one release to another.
You can manually transfer the path information. 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. We suggest uninstalling MATLAB rather than installing on top of a current installation.
You can locate the PATHDEF.M file by executing the following at the MATLAB command prompt:
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 PATHDEF.M file.
4. Restart MATLAB and run the PATHDEF command.
5. Run the PATH command to make sure the path was set up properly.
Troubleshooting:
Create a PATHDEF.m that includes all installed toolboxes by executing the following code at the command prompt:
restoredefaultpath
savepath
Then perform steps 1 through 5 to add your personal directories.
Best Answer