<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154026</link>
    <title>MATLAB Central Newsreader - Callilng Matlab from Java</title>
    <description>Feed for thread: Callilng Matlab from Java</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 06 Aug 2007 19:25:00 -0400</pubDate>
      <title>Callilng Matlab from Java</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154026#386473</link>
      <author>Uriel </author>
      <description>Does anyone know if how to call Matlab Fucntions from a Java&lt;br&gt;
Application (Not calling java objects FROM MATLAB)&lt;br&gt;
?  &lt;br&gt;
I have some code and data from Java, but I need to access&lt;br&gt;
functions in Matlab in order to create PeakFit Graphs.&lt;br&gt;
&lt;br&gt;
Please Help</description>
    </item>
    <item>
      <pubDate>Tue, 07 Aug 2007 15:27:37 -0400</pubDate>
      <title>Re: Callilng Matlab from Java</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154026#386608</link>
      <author>Yair Altman</author>
      <description>&quot;Uriel &quot; &amp;lt;uribre@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;f97sib$bql$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Does anyone know if how to call Matlab Fucntions from a Java&lt;br&gt;
&amp;gt; Application (Not calling java objects FROM MATLAB)?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/company/newsletters/news_notes/win02/patterns.html&quot;&gt;http://www.mathworks.com/company/newsletters/news_notes/win02/patterns.html&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html&quot;&gt;http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Note: undocumented &amp; unsupported&lt;br&gt;
&lt;br&gt;
Yair Altman&lt;br&gt;
&lt;a href=&quot;http://www.ymasoftware.com&quot;&gt;http://www.ymasoftware.com&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Wed, 12 Sep 2007 23:43:01 -0400</pubDate>
      <title>Re: Callilng Matlab from Java</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154026#392001</link>
      <author>Bill York</author>
      <description>&quot;Uriel &quot; &amp;lt;uribre@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;f97sib$bql$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Does anyone know if how to call Matlab Fucntions from a &lt;br&gt;
Java&lt;br&gt;
&amp;gt; Application (Not calling java objects FROM MATLAB)&lt;br&gt;
&amp;gt; ?  &lt;br&gt;
&amp;gt; I have some code and data from Java, but I need to access&lt;br&gt;
&amp;gt; functions in Matlab in order to create PeakFit Graphs.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Please Help&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Uriel, could you tell me more about why you want to call &lt;br&gt;
MATLAB from Java? More importantly, does it need to be &lt;br&gt;
syncrhonous or not?</description>
    </item>
    <item>
      <pubDate>Sat, 22 Sep 2007 21:56:23 -0400</pubDate>
      <title>Re: Callilng Matlab from Java</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154026#393522</link>
      <author>Yair Altman</author>
      <description>&quot;Bill York&quot; &amp;lt;BillDotYork@MathWorks.com&amp;gt; wrote...&lt;br&gt;
&amp;gt; Uriel, could you tell me more about why you want to call &lt;br&gt;
&amp;gt; MATLAB from Java? More importantly, does it need to be &lt;br&gt;
&amp;gt; syncrhonous or not?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
A good reason I once wanted to do this was when I wanted to&lt;br&gt;
have a multi-threaded application. Matlab is basically&lt;br&gt;
single-threaded and even timers &amp; HG callbacks, which should&lt;br&gt;
run in separate threads, actually use only the one&lt;br&gt;
single-threaded computational engine, AFAIK. I thought that&lt;br&gt;
calling the Matlab computational engine from Java treads&lt;br&gt;
would do the trick. Unfortunately it did not, since Matlab&lt;br&gt;
is not only single-threaded, but actually blocks until&lt;br&gt;
processing is done, preventing re-entrancy. Having a&lt;br&gt;
reentrant and truly multi-threaded engine is a wet dream,&lt;br&gt;
but I must admit this is a pretty big challenge, so I'm not&lt;br&gt;
really expecting it soon.&lt;br&gt;
&lt;br&gt;
Another reason to call Matlab from Java is if you have an&lt;br&gt;
existing Java-based GUI in which you want to incorporate&lt;br&gt;
Matlab-based computations. Since Java enables richer GUIs&lt;br&gt;
than vanilla Matlab, this would be an ideal combination. One&lt;br&gt;
can, of course, design Java GUIs from within Matlab, but&lt;br&gt;
this involves undocumented functions and hacks that few are&lt;br&gt;
familiar or comfortable with (all those awtinvokes...). Not&lt;br&gt;
to mention the fact that profiling or debugging Java called&lt;br&gt;
from Matlab is currently impossible (AFAIK again), while the&lt;br&gt;
reverse is possible.&lt;br&gt;
&lt;br&gt;
Yair Altman</description>
    </item>
    <item>
      <pubDate>Sat, 13 Oct 2007 13:51:26 -0400</pubDate>
      <title>Re: Callilng Matlab from Java</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154026#396538</link>
      <author>Timothy Wall</author>
      <description>There are some guys using JNA to do this:&lt;br&gt;
&lt;br&gt;
https://jna.dev.java.net/servlets/BrowseList?&lt;br&gt;
list=users&amp;by=thread&amp;from=935824&lt;br&gt;
&lt;br&gt;
JNA supports all sorts of Java&amp;lt;-&amp;gt;native communication, including native-&amp;gt;Java &lt;br&gt;
callbacks.  It's also cross-platform, and probably runs on more systems than &lt;br&gt;
matlab itself does.</description>
    </item>
    <item>
      <pubDate>Mon, 19 Apr 2010 22:01:08 -0400</pubDate>
      <title>Re: Callilng Matlab from Java</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/154026#737539</link>
      <author>John  Dick</author>
      <description>&quot;Uriel &quot; &amp;lt;uribre@yahoo.com&amp;gt; wrote in message &amp;lt;f97sib$bql$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Does anyone know if how to call Matlab Fucntions from a Java&lt;br&gt;
&amp;gt; Application (Not calling java objects FROM MATLAB)&lt;br&gt;
&amp;gt; ?  &lt;br&gt;
&amp;gt; I have some code and data from Java, but I need to access&lt;br&gt;
&amp;gt; functions in Matlab in order to create PeakFit Graphs.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Please Help&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://jamal.sourceforge.net&quot;&gt;http://jamal.sourceforge.net&lt;/a&gt;  does what you need. You can call Matlab functions from java and return the output back.</description>
    </item>
  </channel>
</rss>

