Why does MATLAB 7.0 (R14) pass my data as NULL to a Java method?
古いコメントを表示
I am using the MATLAB Java interface to pass data from MATLAB into a Java method I am calling. For example, I might try the following code:
data = rand(1,5000000);
myobject = MyClass;
myobject.myMethod(data)
However, for some data arrays, the call fails and MATLAB returns the following error:
ERROR: ??? Java exception occurred:
java.lang.NullPointerException
at MyClass.myMethod(MyClass.java:13)
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Call Java from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!