我是靠谱客的博主 殷勤小海豚,最近开发中收集的这篇文章主要介绍matlab笔记2012.11.08 MATLAB打开后命令行警告,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

安装MATLAB(版本为R2010b)后,打开时很慢,打开后初始化进入ready状态,命令行每次都出现警告(warning)如下:

Warning: D:Program FilesMATLABR2010btoolboxlocalpathdef.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 FilesMATLABR2010btoolboxlocal.
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

我的主要出现下面情况:

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:scriptNotAFunction
Attempt to execute SCRIPT dot as a function:
C:UserslenovoDocumentsMATLABdot.m

在网上搜了一下,解决的办法如下:

1. 在matlab的command里输入: restoredefaultpath;matlabrc. 回车等待执行完毕.

2. cd到'你的安装目录'MATLABR2011btoolboxlocal.

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

该问题得到解决, 再次启动MATLAB不会再出现该Warning.

转载:http://blog.sina.com.cn/s/blog_5f7f49ff0101cbtn.html

最后

以上就是殷勤小海豚为你收集整理的matlab笔记2012.11.08 MATLAB打开后命令行警告的全部内容,希望文章能够帮你解决matlab笔记2012.11.08 MATLAB打开后命令行警告所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(45)

评论列表共有 0 条评论

立即
投稿
返回
顶部