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

조회 수: 14 (최근 30일)
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?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2016년 12월 8일
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:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by