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:
running MATLAB commands from Java

Subject: running MATLAB commands from Java

From: Murali Manohara Chembarpu

Date: 26 Oct, 2009 10:53:01

Message: 1 of 2

I have some requirement to invoke Matlab from Java platform and run certain Matlab commands from Java end. I could not find exact documentation for the same. Java Builder is not exactly what we are looking at. We just need a Java interface (like COM server which can serve for C/.NET) running from MATLAB end.

Subject: running MATLAB commands from Java

From: Yair Altman

Date: 26 Oct, 2009 13:59:20

Message: 2 of 2

"Murali Manohara Chembarpu" <muralimanohara.chembarpu@microchip.com> wrote in message <hc3v2d$gc7$1@fred.mathworks.com>...
> I have some requirement to invoke Matlab from Java platform and run certain Matlab commands from Java end. I could not find exact documentation for the same. Java Builder is not exactly what we are looking at. We just need a Java interface (like COM server which can serve for C/.NET) running from MATLAB end.

What you're looking for is called JMI (Java-Matlab Integration) and it's one of the deepest undocumented black holes in Matlab. You can find a few references in this forum (threads 250598, 38383, 154026, 157132) and elsewhere (e.g., http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html). Everything is contained within the com.mathworks.jmi package.

You may also find the JMatLink project helpful: http://jmatlink.sourceforge.net/

Yair Altman
http://UndocumentedMatlab.com

Tags for 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