0

I have similar matlab and java classes:

public class myClass {

double[][] v1;

String v2;

}

I need to export the matlab object, whos struct is:

obj =

v1: [2x2 double]
v2: 'abc'

into Java. Is there a common way to do it?

I can also save the struct as xml file.

Is there any parser that can do:

myClass obj = SomeParser( xmlFilename, classname );

1 Answer 1

1

Matlab and Java can interact using http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html. You can also look at XStream for reading objects in from XML.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.