<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: JMI wrapper &#8211; local MatlabControl part 2	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jmi-wrapper-local-matlabcontrol-part-2</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 24 Apr 2018 17:42:34 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Jaggi		</title>
		<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-424027</link>

		<dc:creator><![CDATA[Jaggi]]></dc:creator>
		<pubDate>Tue, 24 Apr 2018 17:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1514#comment-424027</guid>

					<description><![CDATA[I would like to debug matlab code using JMI... Localmatlabproxy.eval option 
Pls let me know yair]]></description>
			<content:encoded><![CDATA[<p>I would like to debug matlab code using JMI&#8230; Localmatlabproxy.eval option<br />
Pls let me know yair</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Etienne Balmes		</title>
		<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-208038</link>

		<dc:creator><![CDATA[Etienne Balmes]]></dc:creator>
		<pubDate>Sat, 01 Jun 2013 12:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1514#comment-208038</guid>

					<description><![CDATA[Hi
I am using calls of the form
mat= new com.mathworks.jmi.Matlab();
mat.fevalConsoleOutput(&quot;function&quot;,variables);

which works wonderfully on Matlab itself but am having a major bug when the same code is compiled (with the matlab compiler). 

The bug occurs when the callback attempts to open graphic objects.
The stack trace differs depending on the OS and version but shows similar
&lt;pre&gt;
  [  0] 000000007AD33FB2                  mcr.dll+278450 (mcrInstance::MCallbackAttach+000018)
  [  1] 000000007D4840FD             libmwgui.dll+213245 (MCallback::init+000253)
  [  2] 000000007D4842B7             libmwgui.dll+213687 (MCallback::MCallback+000039)
  [  3] 000000007D4847DF             libmwgui.dll+215007 (CopyMCallback+000063)
  [  4] 00000000793CB4DD                   hg.dll+3060957 (gf_PixelPosition+009997)
  [  5] 00000000794C86A0                   hg.dll+4097696 (hgConvertUDInterfaceToHandle+013760)
  [  6] 000000007C4155E6                  udd.dll+284134 (UDInterface::setE+000806)
  [  7] 000000007C3DB1E4                  udd.dll+045540 (udiSet+000068)
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Hi<br />
I am using calls of the form<br />
mat= new com.mathworks.jmi.Matlab();<br />
mat.fevalConsoleOutput(&#8220;function&#8221;,variables);</p>
<p>which works wonderfully on Matlab itself but am having a major bug when the same code is compiled (with the matlab compiler). </p>
<p>The bug occurs when the callback attempts to open graphic objects.<br />
The stack trace differs depending on the OS and version but shows similar</p>
<pre>
  [  0] 000000007AD33FB2                  mcr.dll+278450 (mcrInstance::MCallbackAttach+000018)
  [  1] 000000007D4840FD             libmwgui.dll+213245 (MCallback::init+000253)
  [  2] 000000007D4842B7             libmwgui.dll+213687 (MCallback::MCallback+000039)
  [  3] 000000007D4847DF             libmwgui.dll+215007 (CopyMCallback+000063)
  [  4] 00000000793CB4DD                   hg.dll+3060957 (gf_PixelPosition+009997)
  [  5] 00000000794C86A0                   hg.dll+4097696 (hgConvertUDInterfaceToHandle+013760)
  [  6] 000000007C4155E6                  udd.dll+284134 (UDInterface::setE+000806)
  [  7] 000000007C3DB1E4                  udd.dll+045540 (udiSet+000068)
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: weikuiwang		</title>
		<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-81865</link>

		<dc:creator><![CDATA[weikuiwang]]></dc:creator>
		<pubDate>Tue, 17 Apr 2012 09:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1514#comment-81865</guid>

					<description><![CDATA[hi, can the matlabcontrol be used also for matlab runtime?]]></description>
			<content:encoded><![CDATA[<p>hi, can the matlabcontrol be used also for matlab runtime?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Inno		</title>
		<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-55651</link>

		<dc:creator><![CDATA[Inno]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 10:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1514#comment-55651</guid>

					<description><![CDATA[Hi, I tried to compile this example, and this is what I get

# javac LocalExample.java
LocalExample.java:55: non-static method eval(java.lang.String) cannot be referenced from a static context
          LocalMatlabProxy.eval(inputField.getText());

Any help will be appreciated. Thanks.]]></description>
			<content:encoded><![CDATA[<p>Hi, I tried to compile this example, and this is what I get</p>
<p># javac LocalExample.java<br />
LocalExample.java:55: non-static method eval(java.lang.String) cannot be referenced from a static context<br />
          LocalMatlabProxy.eval(inputField.getText());</p>
<p>Any help will be appreciated. Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Etienne Balmes		</title>
		<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-49333</link>

		<dc:creator><![CDATA[Etienne Balmes]]></dc:creator>
		<pubDate>Fri, 24 Jun 2011 14:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1514#comment-49333</guid>

					<description><![CDATA[I have been following your posts with interest. Here is a question. I have very large data sets in MATLAB and would like to use a custom table model to display them in java. I tested the process in pure java and it works as it should. 

Now to implement an &lt;i&gt; AbstractTableModel &lt;/i&gt; I need to be able to call Matlab (or possibly C), to get the correct values on &lt;i&gt; getColumnCount &lt;/i&gt;, &lt;i&gt; getRowCount &lt;/i&gt; and  &lt;i&gt; getValueAt &lt;/i&gt;

Using the JMI I can get the data with a call to my own Matlab function &lt;i&gt; mat.fevalConsoleOutput(&quot;cinguj&quot;, ...); &lt;/i&gt;

But when this is called by SWING I cannot use &lt;i&gt; Matlab.mtFevalConsoleOutput &lt;/i&gt; because swing is not on the main Matlab Thread so JMI complains and &lt;i&gt; fevalConsoleOutput &lt;/i&gt; seems to run asynchronously so that I do not get the right answer in time.

Matlabcontrol does not call &lt;i&gt; fevalConsoleOutput &lt;/i&gt; and thus does not address the issue. I also tried implementing the &lt;i&gt; com.mathworks.jmi.CompletionObserver&lt;/i&gt; (just say implements CompletionObserver and add a completed method) but I have not found out to get the java to wait until completion (things I have tried locked up).

Yair, if you don&#039;t have an easy answer, I am willing to invest some money into it.]]></description>
			<content:encoded><![CDATA[<p>I have been following your posts with interest. Here is a question. I have very large data sets in MATLAB and would like to use a custom table model to display them in java. I tested the process in pure java and it works as it should. </p>
<p>Now to implement an <i> AbstractTableModel </i> I need to be able to call Matlab (or possibly C), to get the correct values on <i> getColumnCount </i>, <i> getRowCount </i> and  <i> getValueAt </i></p>
<p>Using the JMI I can get the data with a call to my own Matlab function <i> mat.fevalConsoleOutput(&#8220;cinguj&#8221;, &#8230;); </i></p>
<p>But when this is called by SWING I cannot use <i> Matlab.mtFevalConsoleOutput </i> because swing is not on the main Matlab Thread so JMI complains and <i> fevalConsoleOutput </i> seems to run asynchronously so that I do not get the right answer in time.</p>
<p>Matlabcontrol does not call <i> fevalConsoleOutput </i> and thus does not address the issue. I also tried implementing the <i> com.mathworks.jmi.CompletionObserver</i> (just say implements CompletionObserver and add a completed method) but I have not found out to get the java to wait until completion (things I have tried locked up).</p>
<p>Yair, if you don&#8217;t have an easy answer, I am willing to invest some money into it.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-19797</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 13 Oct 2010 08:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1514#comment-19797</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-19792&quot;&gt;n n&lt;/a&gt;.

matlabcontrol.jar is available here: http://code.google.com/p/matlabcontrol/downloads/list]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-19792">n n</a>.</p>
<p>matlabcontrol.jar is available here: <a href="http://code.google.com/p/matlabcontrol/downloads/list" rel="nofollow ugc">http://code.google.com/p/matlabcontrol/downloads/list</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: n n		</title>
		<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-19792</link>

		<dc:creator><![CDATA[n n]]></dc:creator>
		<pubDate>Wed, 13 Oct 2010 06:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1514#comment-19792</guid>

					<description><![CDATA[hello guys.
Where should I found this file?

import matlabcontrol.LocalMatlabProxy;
import matlabcontrol.MatlabInvocationException;]]></description>
			<content:encoded><![CDATA[<p>hello guys.<br />
Where should I found this file?</p>
<p>import matlabcontrol.LocalMatlabProxy;<br />
import matlabcontrol.MatlabInvocationException;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JMI wrapper – remote MatlabControl &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-10396</link>

		<dc:creator><![CDATA[JMI wrapper – remote MatlabControl &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Wed, 26 May 2010 08:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1514#comment-10396</guid>

					<description><![CDATA[[...] Last week I demonstrated  using matlabcontrol to call Matlab from Java from within the Matlab application. Today I will explain how to control Matlab from a remote Java session. [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Last week I demonstrated  using matlabcontrol to call Matlab from Java from within the Matlab application. Today I will explain how to control Matlab from a remote Java session. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ben		</title>
		<link>https://undocumentedmatlab.com/articles/jmi-wrapper-local-matlabcontrol-part-2#comment-10236</link>

		<dc:creator><![CDATA[ben]]></dc:creator>
		<pubDate>Fri, 21 May 2010 09:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1514#comment-10236</guid>

					<description><![CDATA[I am looking forward to your blog post about controlling Matlab using matlabcontrol over a remote connection. Thanks for all the effort you put into matlabcontrol!]]></description>
			<content:encoded><![CDATA[<p>I am looking forward to your blog post about controlling Matlab using matlabcontrol over a remote connection. Thanks for all the effort you put into matlabcontrol!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
