Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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

Hello
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
P



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.