zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    一个分页的存储过程
    自己动手:修改crx文件制作自己的Chrome Apps
    SQLSERVER 过滤所有权的代码
    在ASP.NET中实现多文件上传
    引用 TimeSpan简介
    xml
    常用的正则表达式小结
    ASP.NET事务处理
    创建可在网页下载安装的ActiveX控件(通过Setup.exe安装)
    ASP.NET验证控件应用实例与详解
  • 原文地址:https://www.cnblogs.com/platero/p/2686505.html
Copyright © 2011-2022 走看看