MATLAB啟動時報錯: pathdef.m not found 問題解決方法


在win7 64位上安裝Matlab R2011b后, 啟動出現一串warning.

Warning: D:\Program Files\MATLAB\R2010b\toolbox\local\pathdef.m not found.
Toolbox Path Cache is not being used. Type 'help toolbox_path_cache' for more info 
Undefined function or variable 'ispc'.
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: D:\Program Files\MATLAB\R2010b\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:UndefinedFunction
Undefined function or method 'colordef' for input arguments of type 'double'. 
> In matlabrc at 100
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 or method 'usejava' for input arguments of type 'char'. 
> In matlabrc at 123
Warning: Failed to add default profiler filters. 
> In matlabrc at 179

 

解決方法是:

1. 在matlab的command里輸入: restoredefaultpath;matlabrc. 回車等待執行完畢.

2. cd到'你的安裝目錄'\MATLAB\R2011b\toolbox\local.

3. 執行命令 "savepath pathdef.m". 

改問題得到解決, 再次啟動MATLAB不會再出現該Warning.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM