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.

转载于:https://www.cnblogs.com/platero/archive/2012/09/15/2686505.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值