Pathdef problem after changing account
显示 更早的评论
Hi, I recently bought a laptop with windows 8 and I installed Matlab R2014a. After updating to windows 8.1 I created a new user account and deleted the old one because I had some problems. But now when I run Matlab I get the following messages in the command window. How can I fix this? Thank you.
C:\Program Files\MATLAB\R2014a\toolbox\local\pathdef.m: Cannot open file: permission denied.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Warning: Duplicate directory name: C:\Program Files\MATLAB\R2014a\toolbox\local
Warning: Initializing Handle Graphics failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:undefinedVarOrClass
Undefined variable "graphics" or class "graphics.internal.initializeMATLABRoot".
Warning: Initializing Java preferences failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:UndefinedFunction
Undefined function 'usejava' for input arguments of type 'char'.
> In matlabrc at 110
Warning: Failed to add default profiler filters.
> In matlabrc at 149
回答(1 个)
Adam
2014-9-4
0 个投票
Have you tried running as administrator?
2 个评论
Francesco
2014-9-4
Different versions of Windows seem to have had different requirements with respect to needing administrator privileges to run certain programs. I'm not really familiar with what these are, but I seem to remember some version where I had to always run Matlab as an administrator in order to save my path variable.
startup.m does not exist unless you create it yourself.
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!