Effacer les filtres
Effacer les filtres

Why are new toolboxes not showing up in ver after restoring the default path?

18 vues (au cours des 30 derniers jours)
I recently added new toolboxes to my MATLAB installation on Windows Vista. After restarting MATLAB the toolboxes do not show up in ver, but it appears that the files are in place. If I run the commands restoredefaultpath;matlabrc and then savepath, or if I add the toolboxes to the path, everything is fine until I restart. How can I add the toolboxes permanently?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 18 Juil 2024 à 0:00
Modifié(e) : MathWorks Support Team le 18 Juil 2024 à 6:29
This enhancement has been incorporated in Release 2011b. For previous product releases, read below for any possible workarounds:
This is an issue caused by the Windows new security feature Data Virtualization which redirects file write operations to the user's profile.
When you install a new toolbox, the path to the toolbox is added to the MATLAB pathdef.m file.
By default, MATLAB is installed in "Program Files," Data Virtualization prevents you from accessing the changes to the pathdef.m file.
To resolve this issue, remove the VirtualStore version of the file:
- Open the Start Menu
- In "Search" box, type the following:
%USERPROFILE%\AppData\local\VirtualStore
- Press "Enter" to open the folder
2. In the VirtualStore folder navigate to the Program Files directory to MATLAB, to the folder that corresponds to the release of MATLAB you are using.
3. In the release folder for MATLAB, navigate to the toolbox\local subfolder.
4. Locate the pathdef.m file and delete it
Once complete, MATLAB should use the original file that has the updates. Alternatively, you can try option # 2 if that does not work.
Option 2) Force the changes to pathdef.m. To do so:
1. Open MATLAB
2. Run the commands:
restoredefaultpath
savepath pathdef.m
3. This will create a new pathdef.m in the current workspace (generally the Documents\MATLAB folder)
4. Open the workspace folder in a Windows Explorer window.
5. In a separate Windows Explorer window open the folder: $MATLAB\toolbox\local.
(where $MATLAB is the installation folder for MATLAB. EX: C:\Program Files\MATLAB\R2008a)
6. Drag pathdef.m from the workspace folder to the MATLAB's toolbox\local folder. When prompted choose to overwrite the file.
If you now restart MATLAB, the path should have the new toolboxes and the functions should be accessible.
If you are still unable to access the new toolbox(es), contact the Installation and Licensing team by creating a new Service Request here:

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by