membersound
membersound

Reputation: 86747

Calling Matlab from Java for heavy algorithms?

Did anyone made a coupling between Java and Matlab and can advise how this can be done best? Is there eg a framework that I should not miss to look at?

I want to write a java program that hands parameters to a matlab function and gets the result (and pictures created in matlab based on iterations) back.

Further these results shall be displayed on a website, so Java EE JSF will be my choice.

How can this coupling be done best?

Upvotes: 1

Views: 809

Answers (3)

Joshua Kaplan
Joshua Kaplan

Reputation: 883

matlabcontrol is a Java API which will allow you to call MATLAB from Java. You can either call MATLAB from within MATLAB or from outside MATLAB in which case an instance of MATLAB is launched and connected to. It allows for invoking eval and feval in MATLAB and returning the results to MATLAB. The walkthrough explains with examples how to do this. The walkthrough uses built-in MATLAB functions and commands, but you can use it with your own .m files because using matlabcontrol is just like interacting with MATLAB's Command Window.

Upvotes: 1

nijoakim
nijoakim

Reputation: 958

You could try JAMAL (JAva MAtlab Linking): http://jamal.khadkevich.org/about.html

Upvotes: 1

High Performance Mark
High Performance Mark

Reputation: 78316

Yes, the Mathworks have made a coupling between Java and Matlab and can advise how this can be done best. You might start your reading at this page.

Upvotes: 1

Related Questions