Use Search Path with Different MATLAB Installations
The default search path changes for each MATLAB® version because the default folders that come with the products change.
Different MATLAB versions cannot use the same
To use your files with a new MATLAB version or with multiple versions, do one of the following:
For each version, add the folders containing your files to the search path. Save the search path (that is, save the
pathdef.mfile) where that version of MATLAB can access it.
addpathstatements in the
startup.mfile. Use the same
startup.mfile with the multiple versions of MATLAB.
addpath statements in the
file also allows you to use your files with MATLAB on different platforms.