Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 pathdef.m file.

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.m file) where that version of MATLAB can access it.

  • Include addpath statements in the startup.m file. Use the same startup.m file with the multiple versions of MATLAB.

Including addpath statements in the startup.m file also allows you to use your files with MATLAB on different platforms.

See Also

Related Topics

Was this topic helpful?