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:
Calling Matlab Function from Java Gui

Subject: Calling Matlab Function from Java Gui

From: sarah

Date: 12 Jul, 2011 08:39:09

Message: 1 of 4

Hi all,

I want to integrate java with matlab. I want to call function of matlab code that I have written from java GUI. Please tell me which library I should include and which package I should include.
like I want to pass an image from java GUI to matlab code.

Few tips how to do this.

Thanks.

Subject: Calling Matlab Function from Java Gui

From: Ed Yu

Date: 5 Aug, 2011 16:34:28

Message: 2 of 4

sarah,

Search for "MatlabControl" and you'll see the java package you'll need. Good Luck!

Ed.

Subject: Calling Matlab Function from Java Gui

From: sarah

Date: 5 Aug, 2011 18:20:29

Message: 3 of 4

I have downloaded matlab control jar file but what package should I use in my java software to call matlab functions from java. And how do I return strings from matlab in java.

Subject: Calling Matlab Function from Java Gui

From: Yair Altman

Date: 6 Aug, 2011 17:37:11

Message: 4 of 4

"sarah" wrote in message <j1hc9d$qbn$1@newscl01ah.mathworks.com>...
> I have downloaded matlab control jar file but what package should I use in my java software to call matlab functions from java. And how do I return strings from matlab in java.

For an explanation of MatlabControl take a look here:
http://UndocumentedMatlab.com/blog/jmi-wrapper-remote-matlabcontrol/

Also look at the related articles linked in that post

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