[matlab][solution][java] Using double or 2d double[][] array in Java JA builder


min read


If you need to have access to a double use:

for double:
[code:1:fd41360ac2]double foo = ((MWNumericArray) result[0]).getDouble();[/code:1:fd41360ac2]

for double[][]:
[code:1:fd41360ac2]MWNumericArray mytemp = ((MWNumericArray) result[1])
double[][] bar = (double[][]) mytemp.toDoubleArray();[/code:1:fd41360ac2]

especially the 2-dimensional double array was badly documented, so use this to your advantage.

Leave a Reply

Your email address will not be published. Required fields are marked *