Can anyone explain why my MatLab is acting the way it is?

6 ビュー (過去 30 日間)
Greig
Greig 2014 年 4 月 7 日
回答済み: Naga 2025 年 2 月 13 日
Everytime I start MatLab it displays the following. I have a program, written on a different computer, which I need to get running but this SEEMS to be preventing that from working-
C:\Program Files\MATLAB\R2012a\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\R2012a\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 113
Warning: Failed to add default profiler filters.
> In matlabrc at 168
I've tried checking into the pathdef.m file, but apparently I don't have permission to access it either...

回答 (1 件)

Naga
Naga 2025 年 2 月 13 日
This error might occur because MATLAB is unable to properly establish a set of preferences or fails to generate a toolbox cache during its initial launch.
Solution #1:
Attempt to delete the MATLAB preferences for your user by executing the following command:
rm -rf ~/.matlab/R2014b
After that, try launching MATLAB again.
If the problem continues, proceed to Solution #2.
Solution #2:
For users experiencing this issue on a CentOS 6 client, mounting a MATLAB installation and preferences directory via NFS with Rdirplus enabled might lead to complications. Request your System Administrator to modify the /etc/nfsmount.conf file by changing the following line:
#Rdirplus=True
To false:
Rdirplus=False
Launch MATLAB.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by