Hi,
I am writing a
java application in which I call Matlab function via JMI (Java Matlab Interface).
In Matlab, every variable is treated as an array. So, after the (custom made) function (involving complex image processing operations) in matlab is completed, it returns an array, say a, of length 2, in which a[0] is of type [Ljava.lang.String and a[1] is of type [Ljava.lang.Object.
a[1] again contains objects of [Ljava.lang.Object where I expect array of floats.
When i try to cast them to Float array, i get ClassCastException.
How do I retrieve float values out of the object array which is non compliant to casting to Float array?
Any suggestions would be of great help.
THanks,