I have a matlab function that returns a single value (or a 1×1 Double)
I have built it into a Jar using JA builder and am calling it from a test java program.
The return type when called from Java is a java.lang.Object[1] – fine so far
When I convert it to using ((MWNumericArray)retVal[0]).getDoubleData() I get a double[0] array!!
There is no value
What am I doing wrong?
Best Answer