加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

MATLAB启动时报错: pathdef.m not found 问题解决方法

(2012-12-27 20:25:39)
标签:

问题解决

时报

方法

文件

问题

分类: —MATLAB

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



解决方法:

先在命令窗口里输入restoredefaultpath;matlabrc并回车,然后在安装目录下\MATLAB\R2011a里搜索pathdef.m,在File->Set Path里面把这些包含pathdef.m的文件夹都Add Folder进去,接着随便选一个pathdef.m文件复制到安装目录下MATLAB\R2010b\toolbox\local文件夹里,save并关闭;最后再次file->set path->default,然后save关闭,后面提示都选yes就解决了。

或者:

1. 在matlab的command里输入: restoredefaultpath;matlabrc. 回车等待执行完毕.
2. cd到'你的安装目录'\MATLAB\R2011b\toolbox\local.
3. 执行命令 "savepath pathdef.m". 
改问题得到解决, 再次启动MATLAB不会再出现该Warning.

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有