Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matlab function into Java

Subject: Matlab function into Java

From: Paolo

Date: 28 Feb, 2012 10:02:11

Message: 1 of 1

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

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us