matlab not null,matlab安装后出问题

Undefined function 'imread' for input arguments of type 'char'.

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:\Matlabfinaltry\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:undefinedVarOrClass

Undefined variable "graphics" or class "graphics.internal.initializeMATLABRoot".

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 'usejava' for input arguments of type 'char'.

> In matlabrc at 111

Warning: Initializing 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 'imread' for input arguments of type 'char'.

> In matlabrc at 134

Warning: Failed to add default profiler filters.

> In matlabrc at 150

Undefined function 'imread' for input arguments of type 'char'.

Error in feature (line 2)

im=double(imread(IMG));

Error in matlabrc (line 197)

if strcmpi(system_dependent('getpref','GeneralEchoOn'),'BTrue')

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

at com.mathworks.mlwidgets.graphics.ModelStateFactory.createNoSelectionModelState(ModelStateFactory.java:242)

at com.mathworks.mlwidgets.graphics.PlotToolSetFactory$3.parseComplete(PlotToolSetFactory.java:128)

at com.mathworks.mlwidgets.graphics.ModelStateFactory$ProductInfoListener$1$1.run(ModelStateFactory.java:1023)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

at java.awt.EventQueue.access$200(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

com.mathworks.jmi.MatlabException: Undefined function 'imread' for input arguments of type 'char'.

at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)

at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:265)

at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)

at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1541)

at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:197)

at com.mathworks.appmanagement.GetAppInstallDirectoryWorker.doOnMatlabThread(GetAppInstallDirectoryWorker.java:20)

at com.mathworks.appmanagement.GetAppInstallDirectoryWorker.doOnMatlabThread(GetAppInstallDirectoryWorker.java:7)

at com.mathworks.appmanagement.AbstractAppManagementMatlabWorker.runOnMatlabThread(AbstractAppManagementMatlabWorker.java:21)

at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)

at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:440)

>> restoredefaultpath;matlabrc

Undefined function 'imread' for input arguments of type 'char'.

Error in feature (line 2)

im=double(imread(IMG));

Error in userpath (line 57)

p = system_dependent('getuserworkfolder');

Error in restoredefaultpath (line 52)

matlabpath([userpath, RESTOREDEFAULTPATH_result]);

Undefined function or variable 'pathtool'.

>> 试了不同版本都有这个问题 还有跳出框 error using eval,undefined function workspacefun for input arguments of type struct

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值