运行我的代码几个小时后,它停止并显示消息。“java,mathworks” - Matlab Java例外
Exception in thread "FileDecorationCache request queue" java.lang.NullPointerException
at com.mathworks.mlwidgets.explorer.model.table.UiFileList.fireListeners(UiFileList.java:450)
at com.mathworks.mlwidgets.explorer.model.table.UiFileList.access$000(UiFileList.java:43)
at com.mathworks.mlwidgets.explorer.model.table.UiFileList$1.stateChanged(UiFileList.java:118)
at com.mathworks.util.MulticastChangeListener.stateChanged(MulticastChangeListener.java:26)
at com.mathworks.mlwidgets.explorer.model.FileDecorationCache$1.stateChanged(FileDecorationCache.java:101)
at com.mathworks.util.MulticastChangeListener.stateChanged(MulticastChangeListener.java:26)
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$2$2.run(FileDecorationModel.java:299)
at com.mathworks.mlwidgets.explorer.extensions.basic.DefaultFileInfoProvider$4.run(DefaultFileInfoProvider.java:91)
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$3$1.run(FileDecorationModel.java:342)
at com.mathworks.util.RequestQueue.execute(RequestQueue.java:105)
at com.mathworks.util.RequestQueue.access$000(RequestQueue.java:23)
at com.mathworks.util.RequestQueue$2.run(RequestQueue.java:76)
at java.lang.Thread.run(Unknown Source)
Subscripted assignment between dissimilar structures.
有没有人有一个想法这是什么意思?
特别是什么不同结构之间的下标指定意思是?
我一直在尝试解决这个问题,因为星期一,我仍然不知道发生了什么。 救救我
谢谢布鲁诺!代码
部分:
我有一个
function Polynome(output, inputs)
output = {'a'}
inputs = {'b', 'c', 'd', 'e'}
,并有数据的基础上,其中每列equivalente到每个字母,所以该代码将搜索谁是列和投入进入polyfitn函数,说y =输出和x =输入。
对于我使用的其他数据库,它工作得很好,因为我想。但现在它不工作,并显示我的错误。
>> s.a = 1;
>> s.b = 2;
>> t.a = 1;
>> s(1) = t // For this to work, s and t must have the same fields
??? Subscripted assignment between dissimilar structures.
检查,你正在做在你的代码结构之间的下标分配,看看你的结构 -
你能否请一些代码(不是全部)来验证NPE的原因? – Abubakkar
我已经添加了一些代码,@Abu –