I'm no help with MatLab, but what you are getting is the default
Object identifier (yup, probably an address, but as Java programmers
we are not supposed to know about those...), which means that the
object you are getting doesn't implement toString(). I'm guessing
that you get the ClassCastException while trying to do something
with this object, which means you actually got something returned
from the method in question. Which is probably a good thing...
Assuming you are grasping at straws until someone who actually
knows something answers your question:
You should be able to call obj.getClass() and print the result to
see what it is (see the javadoc for "Object"). Or look at it in a
debugger for clues. And I'm not sure why you have an array of
retVals, are you looking at the right element?
MS
jorge rodriguez wrote:
Hello,
I’ve installed the MatlabControl class and I´m currently using it to
call Matlab functions from Java. The functions “eval” and “feval” work
properly but when I use “blockingFeval” for simple Matlab functions as
“'sqrt'” or “abs” I don’t get a Double object as the return argument and
get a ClassCastException. I’ve tried to see what kind of class I’m
getting back; when I ask Java to print the return argument
“System.out.println(retVal[0]);” I get [EMAIL PROTECTED] which looks like a
memory address.
Any ideas?
Thanks,
Jorge
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help