在运行了几个小时的代码之后,它已经停止了,并显示了下面的消息。
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'}并有一个数据库,其中每一列与每个字母相等,因此这段代码将搜索列中的列,并将其放入一个多功能函数,即y = output和x = inputs。
对于我使用的另外两个数据库,它运行得非常好,正如我所希望的那样。但现在它不起作用了,让我看看这个错误。
发布于 2013-07-04 13:47:07
当您尝试执行以下操作时,通常会出现错误Subscripted assignment between dissimilar structures --
>> 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.检查您在代码中的结构之间执行订阅赋值的位置,并查看您分配的结构是否具有相同的字段。
https://stackoverflow.com/questions/17471493
复制相似问题