<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UJMP&#187; Universal Java Matrix Package &#187; I need a certain Matlab function, where do I find it in UJMP?</title>
	<atom:link href="http://www.ujmp.org/tag/matlab/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ujmp.org</link>
	<description>Universal Java Matrix Package</description>
	<lastBuildDate>Mon, 15 Feb 2010 11:40:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I need a certain Matlab function, where do I find it in UJMP?</title>
		<link>http://www.ujmp.org/i-need-a-certain-matlab-function-where-do-i-find-it-in-ujmp/</link>
		<comments>http://www.ujmp.org/i-need-a-certain-matlab-function-where-do-i-find-it-in-ujmp/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:32:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FAQ]]></category>
		<category><![CDATA[Matlab]]></category>

		<guid isPermaLink="false">http://www.ujmp.org/wp/?p=94</guid>
		<description><![CDATA[UJMP supports many Matlab functions, but not all.
But you can execute Matlab from within UJMP when you use Linux:

Matlab.getInstance&#40;&#41;.setMatrix&#40;&#34;matrixInMatlab&#34;, ujmpMatrix&#41;;
Matlab.getInstance&#40;&#41;.execute&#40;&#34;result = matlabFunction(matrixInMatlab)&#34;&#41;;
Matrix m = Matlab.getInstance&#40;&#41;.getMatrix&#40;&#34;result&#34;&#41;;


Unfortunately, this is not working in Windows. 
You might have to tell UJMP through a parameter, where the program is installed:
-DMatlab="/opt/matlab/matlab"
]]></description>
			<content:encoded><![CDATA[<p>UJMP supports many Matlab functions, but not all.<br />
But you can execute Matlab from within UJMP when you use Linux:</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">Matlab.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setMatrix</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;matrixInMatlab&quot;</span>, ujmpMatrix<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Matlab.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">execute</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;result = matlabFunction(matrixInMatlab)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
Matrix m <span style="color: #339933;">=</span> Matlab.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getMatrix</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;result&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</p>
<p>Unfortunately, this is not working in Windows. </p>
<p>You might have to tell UJMP through a parameter, where the program is installed:<br />
<code>-DMatlab="/opt/matlab/matlab"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ujmp.org/i-need-a-certain-matlab-function-where-do-i-find-it-in-ujmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
