Path: news.mathworks.com!not-for-mail
From: "Pontus H?rling" <hoerling@foi.se>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Calling Matlab from Java
Date: Wed, 23 Sep 2009 09:58:03 +0000 (UTC)
Organization: Totalf&#246;rsvarets Forskningsinstitut
Lines: 10
Message-ID: <h9crfb$iv7$1@fred.mathworks.com>
References: <h87tev$18l$1@fred.mathworks.com>
Reply-To: "Pontus H?rling" <hoerling@foi.se>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1253699883 19431 172.30.248.37 (23 Sep 2009 09:58:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 23 Sep 2009 09:58:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 156779
Xref: news.mathworks.com comp.soft-sys.matlab:572283


Hello, I would like to call Matlab code not only matlab functions but code I have written myself) from a stand-alone Java program. You say you do it via the Matlab engine, but can this be done from Java? Is it not only from C/C++ or Fortran, so sys the manual...? Do you go in 2 steps via JNI (Java Native Interface) in C which has to be mex.ed or something?

Best

Pontus H?rling

"Stephan Larws" <stephan.larws@iav.de> wrote in message <h87tev$18l$1@fred.mathworks.com>...
> Hi,
> 
> I'm trying to call Matlab functions from java via the Matlab Engine. It works fine as long as there are no Matlab GUI elements involved. But I need to call scripts which create a GUI and run then in their own Matlab window. Does anyone know if there are limitations to the type of scripts called via the matlab engine? Thanks for all your help :)