I am trying to save the MATLAB path on Windows with the User Account Control (UAC) set to "on".
MATLAB is installed in a directory protected by UAC (e.g., C:\Program Files).
If try to execute the function SAVEPATH, my path is not saved and I receive the following warning:
>> savepath Warning: Unable to save path to file 'C:\Program Files\MATLAB\R2009a\toolbox\local\pathdef.m'. > In savepath at 162
If I try to save the MATLAB path from PATHTOOL ('Set Path' dialog) I get the message:
MATLAB cannot save changes to the path. The path file, pathdef.m, might be read-only or might be in a directory for which you do not have write access. You can save pathdef.m to a different location, In order for MATLAB to user the pathdef.m in future sessions, you need to save it in your MATLAB startup directory (the directory from which you start MATLAB). Would you like to save pathdef.m to another location?
I have full administrative privileges on this computer.
Best Answer