The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Matlab function into Java
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Paolo Tarpanelli

Posts: 49
Registered: 1/9/06
Matlab function into Java
Posted: Feb 28, 2012 5:02 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am deploying some m files into Java package but I get this problem

some of these functions return an array of doubles for example

function y = myfun(x)
y = randn(x,1);

where x is the dimension of the y array.

In java to get the output of myfun I write

Object[] out = null;
out = myfun(x)

The problem is that in this case I can not parse the object and access each element of my array.

How can I go through the array that I get from matlab function?

Thanks in advance

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.