Why am I unable to make changes to MATLAB on Windows 7?
2 次查看(过去 30 天)
显示 更早的评论
I installed MATLAB on Windows 7, and now it prevents me making any permanent change to the application. For example, whenever I save a change to the MATLAB path, the change disappears as soon as I restart MATLAB. This used to work fine with Windows XP. What's going on?
0 个评论
采纳的回答
John
2011-1-14
Windows 7 and Windows Vista use security features that prevent users from editing files in system locations. This includes programs that are installed in the "Program Files" directory which includes MATLAB. When you try to edit the files in MATLAB, one of possibilities can happen:
1) User Account Control prevents the change from occurring unless you run the program with administrator rights.
2) User Account Control allows you to make changes, but redirects the changed file to the user profile using File and Registry Virtualization.
The first issue usually manifests itself if you attempt to install an add-on to MATLAB using a MATLAB file installer such as in the MATLAB connector. For this you will receive an error message indicating that you do not have write permission or a warning message stating that you do not have administrator rights. To resolve these types of issue, you can run MATLAB with elevated permission by right clicking on your MATLAB shortcut and selecting "Run as Administrator".
For the second issue, you will notice that when you have already made a change to MATLAB (editing the path, installing a new toolbox, updating a license file) if you restart MATLAB, it acts as if the change never occurred. This is because changes done without the "Run as Administrator" option are redirected to your user profile. In that case, you may have two versions of some of your MATLAB files. To resolve this you can remove the duplicates, or replace the original file with your changed version. To locate the user version of the file, you can perform the following:
1) Go to the Start Menu and type the following in the "Start Search" box:
%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.
Once you have located the files, you can either remove the duplicate or move the duplicate into the actual MATLAB folder (ex: C:\Program Files\MATLAB\R2010b). Once complete, MATLAB will see the changes you made on the next restart.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!