Tech Support advised running Matlab "As Administrator" and this did solve the problem.
Problems with savepath in R2023b
239 vues (au cours des 30 derniers jours)
I have just installed R2023b on two different machines. Both give the following problem, when trying to use savepath
Warning: Unable to save path to file 'C:\Program Files\MATLAB\R2023b\toolbox\local\pathdef.m'. You can save your path to a different location
by calling SAVEPATH with an input argument that specifies the full path. For MATLAB to use that path in future sessions, save the path to
'pathdef.m' in your MATLAB startup folder.
> In savepath (line 238)
Any idea why this warning is issued and how to fix it?
Plus de réponses (2)
Walter Roberson le 25 Sep 2023
Déplacé(e) : Walter Roberson le 25 Sep 2023
On a shared system, users should not have write access to pathdef.m inside the MATLAB installation directory.
If this is not a share system, you could try using File Explorer to set you as having write permission to the file. But it being Windows, I do not know if UAC would override that write access since it is a file living inside c:\Program Files . Easiest is to savepath to your userpath . Or change your preferences to point to a different folder; see https://www.mathworks.com/help/matlab/matlab_env/matlab-startup-folder.html