運行我的代碼幾個小時後,它停止並顯示消息。「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 –